diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 749c1e76..b5a5a262 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -445,7 +445,7 @@ AC_ARG_WITH( ] ) -PYTHON_LIBS_COMMAND="${PYTHON_CONFIG} --libs" +PYTHON_LIBS_COMMAND="${PYTHON_CONFIG} --ldflags --libs" AX_COMPARE_VERSION( [${PYTHON_MAJORMINOR}], @@ -455,7 +455,7 @@ AX_COMPARE_VERSION( ) PYTHON_CPPFLAGS=`${PYTHON_CONFIG} --includes | sed 's/-I/-isystem/g'` -PYTHON_LIBS=`${PYTHON_LIBS_COMMAND}` +PYTHON_LIBS=`${PYTHON_LIBS_COMMAND} | tr '\r\n' ' '` AC_SUBST([PYTHON_CPPFLAGS]) AC_SUBST([PYTHON_LIBS]) diff --git a/configure b/configure index 99964c27..046629d9 100755 --- a/configure +++ b/configure @@ -5570,7 +5570,7 @@ fi fi -PYTHON_LIBS_COMMAND="${PYTHON_CONFIG} --libs" +PYTHON_LIBS_COMMAND="${PYTHON_CONFIG} --ldflags --libs" @@ -5610,7 +5610,7 @@ x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version PYTHON_CPPFLAGS=`${PYTHON_CONFIG} --includes | sed 's/-I/-isystem/g'` -PYTHON_LIBS=`${PYTHON_LIBS_COMMAND}` +PYTHON_LIBS=`${PYTHON_LIBS_COMMAND} | tr '\r\n' ' '`