summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index 893b8efce5..1bdee43e83 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -170,6 +170,15 @@ class Gcc(AutotoolsPackage):
'typedef void* dispatch_block_t',
new_header)
+ # Use installed libz
+ if self.version >= Version('6'):
+ filter_file('@zlibdir@',
+ '-L{0}'.format(spec['zlib'].prefix.lib),
+ 'gcc/Makefile.in')
+ filter_file('@zlibinc@',
+ '-I{0}'.format(spec['zlib'].prefix.include),
+ 'gcc/Makefile.in')
+
def configure_args(self):
spec = self.spec