From: Thomas A Caswell Date: Thu, 21 Mar 2024 23:54:50 +0000 (-0400) Subject: gh-116745: Remove all internal usage of @LIBPYTHON@ (#116746) X-Git-Tag: v3.13.0a6~190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4bf58a14f162557038a1535ca22c52b49d81d7b;p=thirdparty%2FPython%2Fcpython.git gh-116745: Remove all internal usage of @LIBPYTHON@ (#116746) Replace with MODULE_LDFLAGS. --- diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in index eb02223ddcd2..c3c0b34fc145 100644 --- a/Misc/python-config.sh.in +++ b/Misc/python-config.sh.in @@ -46,7 +46,7 @@ LIBM="@LIBM@" LIBC="@LIBC@" SYSLIBS="$LIBM $LIBC" ABIFLAGS="@ABIFLAGS@" -LIBS="@LIBPYTHON@ @LIBS@ $SYSLIBS" +LIBS="@MODULE_LDFLAGS@ @LIBS@ $SYSLIBS" LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} @LIBS@ $SYSLIBS" BASECFLAGS="@BASECFLAGS@" LDLIBRARY="@LDLIBRARY@" diff --git a/Misc/python.pc.in b/Misc/python.pc.in index 027dba38585a..c2c740e82b1f 100644 --- a/Misc/python.pc.in +++ b/Misc/python.pc.in @@ -9,5 +9,5 @@ Description: Build a C extension for Python Requires: Version: @VERSION@ Libs.private: @LIBS@ -Libs: -L${libdir} @LIBPYTHON@ +Libs: -L${libdir} @MODULE_LDFLAGS@ Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@