Skip to content

Commit

Permalink
Pass rpath to linker if --enable-shared was given (#65, #66, #82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashita Yuu committed Dec 20, 2013
1 parent 3d5156e commit 43212f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/python-build/bin/python-build
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,10 @@ if [ -n "$DEBUG" ]; then
PYTHON_CONFIGURE_OPTS="--with-pydebug $PYTHON_CONFIGURE_OPTS"
fi

if [[ "$PYTHON_CONFIGURE_OPTS" == *"--enable-shared"* ]] && [[ "$LDFLAGS" != *"-Wl,-rpath="* ]]; then
LDFLAGS="-Wl,-rpath=${PREFIX_PATH}/lib ${LDFLAGS}"
fi

SEED="$(date "+%Y%m%d%H%M%S").$$"
LOG_PATH="${TMP}/python-build.${SEED}.log"
PYTHON_BIN="${PREFIX_PATH}/bin/python"
Expand Down

0 comments on commit 43212f6

Please sign in to comment.