mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Add LDFLAGS for zlib on macOS >= 1100 (#1711)
Add LDFLAGS for Xcode SDK zlib on macOS >= 1100 to resolve build issues on Big Sur.
This commit is contained in:
parent
806b30d6ce
commit
943015ebb2
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue