diff options
author | Christoph Junghans <christoph.junghans@gmail.com> | 2018-02-27 05:02:04 -0700 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2018-02-27 13:02:04 +0100 |
commit | f04837b03ec9ebf29bc1ecd18d8daefe627ae975 (patch) | |
tree | eee7bc6442c392b00a2c4773d1af6cc5e0c11714 | |
parent | 03cf03e581df145524c081f88ad99b2e5cc255f1 (diff) | |
download | spack-f04837b03ec9ebf29bc1ecd18d8daefe627ae975.tar.gz spack-f04837b03ec9ebf29bc1ecd18d8daefe627ae975.tar.bz2 spack-f04837b03ec9ebf29bc1ecd18d8daefe627ae975.tar.xz spack-f04837b03ec9ebf29bc1ecd18d8daefe627ae975.zip |
snbone: fix build gcc-4.8 (#7317)
-rw-r--r-- | var/spack/repos/builtin/packages/snbone/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/snbone/package.py b/var/spack/repos/builtin/packages/snbone/package.py index eb493d9a16..d1d2a63806 100644 --- a/var/spack/repos/builtin/packages/snbone/package.py +++ b/var/spack/repos/builtin/packages/snbone/package.py @@ -50,7 +50,9 @@ class Snbone(MakefilePackage): elif self.compiler.name == 'intel': make('COMPILER=intel', 'LDFLAGS=-lm') else: - make('COMPILER=gfortran', 'LDFLAGS=-lm') + # older gcc need link libs after objs, but + # LDFLAGS is in the front, so use IBMLIB instead + make('COMPILER=gfortran', 'IBMLIB=-lm') def install(self, spec, prefix): mkdirp(prefix.bin.C) |