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:
parent
6968777af7
commit
9ad3b1a747
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user