summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 575ff22..e705cf9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1216,8 +1216,10 @@ if test "$status_python" = yes; then
*) AC_MSG_WARN([unsupported Python version $PYTHON_VERSION])
status_python=no
esac
-
- PYTHON_LIBS=`$PYTHON_CONFIG --libs`
+
+ # See https://docs.python.org/dev/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build
+ PYTHON_LIBS=`python-config --libs --embed 2>/dev/null` || \
+ PYTHON_LIBS=`python-config --libs`
PYTHON_INCLUDES=`$PYTHON_CONFIG --includes`
else
status_python=no

Return to:

Send suggestions and report system problems to the System administrator.