ospac: fix compiler usage and install (#7776)

This commit is contained in:
Christoph Junghans 2018-04-16 15:56:37 -06:00 committed by GitHub
parent e94808a560
commit b6d3feba20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,4 +42,13 @@ def url_for_version(self, version):
def install(self, spec, prefix): def install(self, spec, prefix):
with working_dir('Source'): with working_dir('Source'):
make('prefix=%s' % self.spec.prefix, 'install') make('install',
'CC={0}'.format(spack_cc),
'CXX={0}'.format(spack_cxx),
'F77={0}'.format(spack_f77),
'F90={0}'.format(spack_fc),
'prefix={0}'.format(prefix),
'INSTALLED_LIBRARY_DIR={0}'.format(prefix.lib),
'INSTALLED_INCLUDE_DIR={0}'.format(prefix.include),
'INSTALLED_EXAMPLE_DIR={0}'.format(prefix.example),
'INSTALLED_BIN_DIR={0}'.format(prefix.bin))