Mailing List Archive

gh-116745: Remove all internal usage of @LIBPYTHON@ (#116746)
https://github.com/python/cpython/commit/c4bf58a14f162557038a1535ca22c52b49d81d7b
commit: c4bf58a14f162557038a1535ca22c52b49d81d7b
branch: main
author: Thomas A Caswell <tcaswell@gmail.com>
committer: erlend-aasland <erlend.aasland@protonmail.com>
date: 2024-03-22T00:54:50+01:00
summary:

gh-116745: Remove all internal usage of @LIBPYTHON@ (#116746)

Replace with MODULE_LDFLAGS.

files:
M Misc/python-config.sh.in
M Misc/python.pc.in

diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in
index eb02223ddcd2c3..c3c0b34fc1451d 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 027dba38585a89..c2c740e82b1fde 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@

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-leave@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: list-python-checkins@lists.gossamer-threads.com