Commit 5448dea9 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

merge from branch: try ${PYTHON}-config --prefix/lib for a last resort LDFLAGS...

merge from branch: try ${PYTHON}-config --prefix/lib for a last resort LDFLAGS for libpython (trac #149)

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parents d4574488 22f3c40f
......@@ -51,8 +51,18 @@ fi
PYTHON_INCLUDES=`${PYTHON}-config --includes`
for flag in `${PYTHON}-config --ldflags`; do
PYTHON_LDFLAGS="$PYTHON_LDFLAGS `echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`"
# add any '-L..." flags to PYTHON_LDFLAGS
flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`
if test "X${flag}" != X; then
# on some platforms, ${PYTHON}-config --ldflags doesn't provide a -L option
# while having the library under a non trivial directory. as a workaround
# we try the "lib" sub directory under the common prefix for this python.
if test -z "${PYTHON_LDFLAGS}"; then
PYTHON_LDFLAGS="-L`${PYTHON}-config --prefix`/lib"
# Check for python library (not absolutely mandatory, but needed for
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment