snbone: fix build gcc-4.8 (#7317)
This commit is contained in:
parent
03cf03e581
commit
f04837b03e
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ def build(self, spec, prefix):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue