snbone: fix build gcc-4.8 (#7317)

This commit is contained in:
Christoph Junghans 2018-02-27 05:02:04 -07:00 committed by Massimiliano Culpo
parent 03cf03e581
commit f04837b03e

View file

@ -50,7 +50,9 @@ def build(self, spec, prefix):
elif self.compiler.name == 'intel': elif self.compiler.name == 'intel':
make('COMPILER=intel', 'LDFLAGS=-lm') make('COMPILER=intel', 'LDFLAGS=-lm')
else: 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): def install(self, spec, prefix):
mkdirp(prefix.bin.C) mkdirp(prefix.bin.C)