Remove -Wl,-rpath=...
from LDFLAGS
on Darwin to fix build.
We don't need to set `rpath` explicitly because the ld on Darwin embeds the full paths to each dylib by default
This commit is contained in:
parent
4d534fed31
commit
0d85193f39
@ -1316,8 +1316,11 @@ if [ -n "$DEBUG" ]; then
|
|||||||
PYTHON_CONFIGURE_OPTS="--with-pydebug $PYTHON_CONFIGURE_OPTS"
|
PYTHON_CONFIGURE_OPTS="--with-pydebug $PYTHON_CONFIGURE_OPTS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$PYTHON_CONFIGURE_OPTS" == *"--enable-shared"* ]] && [[ "$LDFLAGS" != *"-Wl,-rpath="* ]]; then
|
if [[ "$PYTHON_CONFIGURE_OPTS" == *"--enable-shared"* ]] && [[ "$LDFLAGS" != *"-rpath="* ]]; then
|
||||||
LDFLAGS="-Wl,-rpath=${PREFIX_PATH}/lib ${LDFLAGS}"
|
# The ld on Darwin embeds the full paths to each dylib by default
|
||||||
|
if [[ "Darwin" != "$(uname -s)" ]]; then
|
||||||
|
export LDFLAGS="-Wl,-rpath=${PREFIX_PATH}/lib ${LDFLAGS}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user