X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=7cbe3ba72220b691074dfd5a2a5d228cc6a1dbd0;hb=41a3efcdbbdd863c3a10a9aefa8d725d3257d77c;hp=c7899e461ae3f20028697cbc0ae57abec07e1c11;hpb=86aeb6b8524b0a8affcfea1c72a92ea256e68c9e;p=babeltrace.git diff --git a/configure.ac b/configure.ac index c7899e46..7cbe3ba7 100644 --- a/configure.ac +++ b/configure.ac @@ -510,7 +510,10 @@ AM_PATH_PYTHON([3.0], [ AS_IF([test -z "$PYTHON_LDFLAGS"], [ AC_MSG_CHECKING([Python library flags]) - PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags` + # Python 3.8+ requires that we pass --embed to get the -lpython3.x flag. + AS_IF([! PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags --embed`], [ + PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags` + ]) AC_MSG_RESULT([$PYTHON_LDFLAGS]) ]) ]) @@ -780,9 +783,9 @@ AC_CONFIG_FILES([ src/py-common/Makefile src/python-plugin-provider/Makefile src/param-parse/Makefile + src/string-format/Makefile tests/bitfield/Makefile tests/ctf-writer/Makefile - tests/argpar/Makefile tests/lib/Makefile tests/lib/test-plugin-plugins/Makefile tests/Makefile