parent
c2d478d705
commit
194843cf57
@ -0,0 +1,13 @@
|
||||
diff --git a/m4/python.m4 b/m4/python.m4
|
||||
index ebacfb2..549676e 100644
|
||||
--- a/m4/python.m4
|
||||
+++ b/m4/python.m4
|
||||
@@ -140,7 +140,7 @@ py_lib_name=`basename $py_include_path`
|
||||
if test "x$PYTHON_LIBS" = x; then
|
||||
PYTHON_CONFIG=`which $PYTHON`-config
|
||||
if test -x "$PYTHON_CONFIG"; then
|
||||
- PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
|
||||
+ PYTHON_LIBS=`$PYTHON_CONFIG --libs --embed 2>/dev/null` || PYTHON_LIBS=`$PYTHON_CONFIG --libs 2>/dev/null`
|
||||
else
|
||||
PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
|
||||
fi
|
Loading…
Reference in new issue