openssl: remove preprocessor flags incompatible with NVIDIA HPC SDK (#21180)

* openssl: remove preprocessor flags incompatible with NVIDIA HPC SDK

* Update var/spack/repos/builtin/packages/openssl/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Scott McMillan 2021-01-20 21:42:53 -06:00 committed by GitHub
parent c5ed46e026
commit fcf99be939
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,5 +172,13 @@ def link_system_certs(self):
os.rmdir(pkg_certs) os.rmdir(pkg_certs)
os.symlink(sys_certs, 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): def setup_build_environment(self, env):
env.set('PERL', self.spec['perl'].prefix.bin.perl) env.set('PERL', self.spec['perl'].prefix.bin.perl)