Fix gcc not finding zlib (#4291)

This commit is contained in:
Michael Kuhn
2017-05-19 19:03:56 +02:00
committed by Adam J. Stewart
parent 8b47fe5a78
commit 571a42d614

View File

@@ -170,6 +170,15 @@ def patch(self):
'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