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:
parent
c5ed46e026
commit
fcf99be939
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue