mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
fix(macos): don't crash on undefined variable
This commit is contained in:
parent
cee23d83e0
commit
6cd0fbdc49
|
@ -62,7 +62,7 @@ case "$ID" in
|
||||||
# openssl no matter what so remove it. Since homebrew's curl depends on
|
# openssl no matter what so remove it. Since homebrew's curl depends on
|
||||||
# it, force use of system curl.
|
# it, force use of system curl.
|
||||||
brew uninstall --force --ignore-dependencies openssl gettext curl
|
brew uninstall --force --ignore-dependencies openssl gettext curl
|
||||||
if [ -z "$MACOSX_ARCHITECTURE" ]; then
|
if [ -z "${MACOSX_ARCHITECTURE:-}" ]; then
|
||||||
MACOSX_ARCHITECTURE="$(uname -m)"
|
MACOSX_ARCHITECTURE="$(uname -m)"
|
||||||
fi
|
fi
|
||||||
# Set the deployment target to be <= to that of the oldest supported Python version.
|
# Set the deployment target to be <= to that of the oldest supported Python version.
|
||||||
|
@ -110,7 +110,7 @@ if [ "$ID" == "centos" ] || [ "$ID" == "macos" ]; then
|
||||||
|
|
||||||
options=(--prefix=${LIBPQ_BUILD_PREFIX} --openssldir=${LIBPQ_BUILD_PREFIX} \
|
options=(--prefix=${LIBPQ_BUILD_PREFIX} --openssldir=${LIBPQ_BUILD_PREFIX} \
|
||||||
zlib -fPIC shared)
|
zlib -fPIC shared)
|
||||||
if [ -z "$MACOSX_ARCHITECTURE" ]; then
|
if [ -z "${MACOSX_ARCHITECTURE:-}" ]; then
|
||||||
./config $options
|
./config $options
|
||||||
else
|
else
|
||||||
./configure "darwin64-$MACOSX_ARCHITECTURE-cc" $options
|
./configure "darwin64-$MACOSX_ARCHITECTURE-cc" $options
|
||||||
|
|
Loading…
Reference in New Issue
Block a user