diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/bzip2/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bzip2/package.py b/var/spack/repos/builtin/packages/bzip2/package.py index d12b88e734..e4b2463784 100644 --- a/var/spack/repos/builtin/packages/bzip2/package.py +++ b/var/spack/repos/builtin/packages/bzip2/package.py @@ -36,6 +36,7 @@ class Bzip2(Package): url = "http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz" version('1.0.6', '00b516f4704d4a7cb50a1d97e6e8e15b') + variant('shared', default=True, description='Enables the build of shared libraries.') def patch(self): @@ -44,6 +45,11 @@ class Bzip2(Package): filter_file(r'^CC=gcc', 'CC=cc', 'Makefile') filter_file(r'^CC=gcc', 'CC=cc', 'Makefile-libbz2_so') + # The Makefiles use GCC flags that are incompatible with PGI + if self.compiler.name == 'pgi': + filter_file('-Wall -Winline', '-Minform=inform', 'Makefile') + filter_file('-Wall -Winline', '-Minform=inform', 'Makefile-libbz2_so') # noqa + # Patch the link line to use RPATHs on macOS if 'darwin' in self.spec.architecture: v = self.spec.version |