libpng: zlib flags more elegant (#5656)

This commit is contained in:
Axel Huebl 2017-10-09 21:46:10 +02:00 committed by Massimiliano Culpo
parent 5d13f236b4
commit 4ba7359d55

View file

@ -57,7 +57,7 @@ def configure_args(self):
# not honored, see # not honored, see
# https://sourceforge.net/p/libpng/bugs/210/#33f1 # https://sourceforge.net/p/libpng/bugs/210/#33f1
# '--with-zlib=' + self.spec['zlib'].prefix, # '--with-zlib=' + self.spec['zlib'].prefix,
'CFLAGS=-I{0}'.format(self.spec['zlib'].prefix.include), 'CFLAGS={0}'.format(self.spec['zlib'].headers.include_flags),
'LDFLAGS=-L{0}'.format(self.spec['zlib'].prefix.lib) 'LDFLAGS={0}'.format(self.spec['zlib'].libs.search_flags)
] ]
return args return args