Prioritize 'zlib from xcode sdk' flag correctly
All include directories should go into CPPFLAGS XCode SDK is supposed to be appended, otherwise Tcl/Tk in it overrides Homebrew one
This commit is contained in:
parent
c844b332ca
commit
117c9060a7
@ -1616,7 +1616,7 @@ use_xcode_sdk_zlib() {
|
||||
local xc_sdk_path="$(xcrun --show-sdk-path 2>/dev/null || true)"
|
||||
if [ -d "$xc_sdk_path" ]; then
|
||||
echo "python-build: use zlib from xcode sdk"
|
||||
export CFLAGS="${CFLAGS:+$CFLAGS }-I${xc_sdk_path}/usr/include"
|
||||
export CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-I${xc_sdk_path}/usr/include"
|
||||
if is_mac -ge 1100; then
|
||||
export LDFLAGS="${LDFLAGS:+$LDFLAGS }-L${xc_sdk_path}/usr/lib"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user