diff --git a/autoconf/configure.ac b/autoconf/configure.ac index be77dbd0..b0686c60 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -395,7 +395,7 @@ AC_ARG_WITH( [] ) PYTHON_CPPFLAGS=`${PYTHON_CONFIG} --includes` - PYTHON_LIBS=`${PYTHON_CONFIG} --libs` + PYTHON_LIBS=`${PYTHON_CONFIG} --ldflags` ], [ AC_PATH_PROG(PYTHON, python${PYTHON_VERSION}, nopython) @@ -406,7 +406,7 @@ AC_ARG_WITH( AC_MSG_ERROR([could not find python or python3]), [ PYTHON_CPPFLAGS=`${PYTHON3}-config --includes` - PYTHON_LIBS=`${PYTHON3}-config --libs` + PYTHON_LIBS=`${PYTHON3}-config --ldflags` PYTHON=$PYTHON3 ] ) diff --git a/configure b/configure index 5a0a7115..73c33c2c 100755 --- a/configure +++ b/configure @@ -5552,7 +5552,7 @@ fi fi PYTHON_CPPFLAGS=`${PYTHON_CONFIG} --includes` - PYTHON_LIBS=`${PYTHON_CONFIG} --libs` + PYTHON_LIBS=`${PYTHON_CONFIG} --ldflags` else @@ -5645,7 +5645,7 @@ fi else PYTHON_CPPFLAGS=`${PYTHON3}-config --includes` - PYTHON_LIBS=`${PYTHON3}-config --libs` + PYTHON_LIBS=`${PYTHON3}-config --ldflags` PYTHON=$PYTHON3