pgi: add missing paths in setup_run_environment (#15480)

This commit is contained in:
Melven Roehrig-Zoellner 2020-03-13 19:07:35 +01:00 committed by GitHub
parent 27bd4a5cdd
commit 7b00712fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,9 @@ def install(self, spec, prefix):
def setup_run_environment(self, env):
prefix = Prefix(join_path(self.prefix, 'linux86-64', self.version))
env.prepend_path('PATH', prefix.bin)
env.prepend_path('MANPATH', prefix.man)
env.prepend_path('LD_LIBRARY_PATH', prefix.lib)
env.set('CC', join_path(prefix.bin, 'pgcc'))
env.set('CXX', join_path(prefix.bin, 'pgc++'))
env.set('F77', join_path(prefix.bin, 'pgfortran'))