Browse Source
Add LDFLAGS for zlib on macOS >= 1100 (#1711)
Add LDFLAGS for Xcode SDK zlib on macOS >= 1100 to resolve build issues on Big Sur.
pull/1732/head
Benjamin Howell
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
plugins/python-build/bin/python-build
|
|
@ -1493,6 +1493,9 @@ use_xcode_sdk_zlib() { |
|
|
|
if [ -d "$xc_sdk_path" ]; then |
|
|
|
echo "python-build: use zlib from xcode sdk" |
|
|
|
export CFLAGS="-I${xc_sdk_path}/usr/include ${CFLAGS}" |
|
|
|
if is_mac -ge 1100; then |
|
|
|
export LDFLAGS="-L${xc_sdk_path}/usr/lib ${LDFLAGS}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|