diff options
-rw-r--r-- | var/spack/repos/builtin/packages/openssl/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py index e205da7108..133d88fd98 100644 --- a/var/spack/repos/builtin/packages/openssl/package.py +++ b/var/spack/repos/builtin/packages/openssl/package.py @@ -172,5 +172,13 @@ class Openssl(Package): # Uses Fake Autotools, should subclass Package os.rmdir(pkg_certs) os.symlink(sys_certs, pkg_certs) + def patch(self): + if self.spec.satisfies('%nvhpc'): + # Remove incompatible preprocessor flags + filter_file('-MF ', '', + 'Configurations/unix-Makefile.tmpl', string=True) + filter_file(r'-MT \$\@ ', '', + 'Configurations/unix-Makefile.tmpl', string=True) + def setup_build_environment(self, env): env.set('PERL', self.spec['perl'].prefix.bin.perl) |