From: Alexander Meshcheryakov Date: Sat, 16 Nov 2019 14:53:32 +0000 (+0300) Subject: Fix linking with Python 3.8 X-Git-Tag: collectd-5.11.0~53^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3344%2Fhead;p=thirdparty%2Fcollectd.git Fix linking with Python 3.8 Since Python 3.8 --embed flag needs to be provided to python-config to embed python. Reference: https://bugs.python.org/issue36721 This was partially addressed in #3170 but only fixed building and not linking with python. --- diff --git a/configure.ac b/configure.ac index 9fc40b17d..00e1f6a53 100644 --- a/configure.ac +++ b/configure.ac @@ -4711,7 +4711,7 @@ if test "$PYTHON_CONFIG" != ""; then if test $? -ne 0; then with_libpython="no" fi - LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags`" + LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags --embed`" || LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags`" if test $? -ne 0; then with_libpython="no" fi