Fix veclibfort for gcc (#4548)

* fixes #967

* Version bump to 0.9.1

- Bugfixes for spack find
- 0.9.1 can read specs from current develop.

* Don't assume spack is in the path when building docs.

* fixing Makefile override of PREFIX and install w/gcc-6
This commit is contained in:
Mark C. Miller 2017-06-20 07:59:40 -07:00 committed by Adam J. Stewart
parent 229886aa8f
commit ca9e6576db

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')