libpng: CPPFLAGS for -I (#6563)

Recent versions of `libpng` (e.g. 1.6.34) warn/abort that includes
for `zlib` need to be passed properly via `CPPFLAGS`. This fixes it.
This commit is contained in:
Axel Huebl 2017-12-04 23:29:35 +01:00 committed by Christoph Junghans
parent 6968777af7
commit 9ad3b1a747

View File

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