diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/libtool/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/libtool/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libtool/package.py b/var/spack/repos/builtin/packages/libtool/package.py index 876817edd2..783123e27e 100644 --- a/var/spack/repos/builtin/packages/libtool/package.py +++ b/var/spack/repos/builtin/packages/libtool/package.py @@ -51,6 +51,12 @@ class Libtool(AutotoolsPackage, GNUMirrorPackage): def _make_executable(self, name): return Executable(join_path(self.prefix.bin, name)) + def patch(self): + # Remove flags not recognized by the NVIDIA compiler + if self.spec.satisfies('%nvhpc'): + filter_file('-fno-builtin', '-Mnobuiltin', 'configure') + filter_file('-fno-builtin', '-Mnobuiltin', 'libltdl/configure') + def setup_dependent_build_environment(self, env, dependent_spec): env.append_path('ACLOCAL_PATH', self.prefix.share.aclocal) |