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
parent
commit
943015ebb2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      plugins/python-build/bin/python-build

+ 3
- 0
plugins/python-build/bin/python-build View File

@ -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
}

Loading…
Cancel
Save