fixing build issues for gcc on osx

This commit is contained in:
miller86 2017-06-19 15:25:39 -07:00
parent e48d09d1ff
commit 3bb64b600a

View File

@ -55,8 +55,16 @@ def install(self, spec, prefix):
if sys.platform != 'darwin':
raise InstallError('vecLibFort can be installed on macOS only')
make('all')
make('PREFIX=%s' % prefix, 'install')
filter_file(r'^PREFIX=.*', '', 'Makefile')
make_args = []
if spec.satisfies('%gcc@6:'):
make_args += ['CFLAGS=-flax-vector-conversions']
make_args += ['PREFIX=%s' % prefix, 'install']
make(*make_args)
# test
fc = which('fc')