X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=7cbe3ba72220b691074dfd5a2a5d228cc6a1dbd0;hb=41a3efcdbbdd863c3a10a9aefa8d725d3257d77c;hp=3c2955bf764036e207262f2c5e853cde41769e54;hpb=ec532b44ab55ca6db21780a3f90ed2d6c37eab90;p=babeltrace.git diff --git a/configure.ac b/configure.ac index 3c2955bf..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]) ]) ]) @@ -783,7 +786,6 @@ AC_CONFIG_FILES([ 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