]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99942: python.pc on android/cygwin should link to libpython per configure.ac ...
authorEli Schwartz <eschwartz93@gmail.com>
Wed, 22 Feb 2023 01:21:24 +0000 (20:21 -0500)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 01:21:24 +0000 (17:21 -0800)
In commit 254b309c801f82509597e3d7d4be56885ef94c11 a previous change to avoid linking to libpython was partially reverted for Android (and later Cygwin as well), to add back the link flags. This was applied to distutils and to python-config.sh, but not to python.pc.

Add it back to python.pc as well.

Automerge-Triggered-By: GH:gpshead
Misc/NEWS.d/next/Build/2022-12-20-01-06-17.gh-issue-99942.lbmzYj.rst [new file with mode: 0644]
Misc/python.pc.in

diff --git a/Misc/NEWS.d/next/Build/2022-12-20-01-06-17.gh-issue-99942.lbmzYj.rst b/Misc/NEWS.d/next/Build/2022-12-20-01-06-17.gh-issue-99942.lbmzYj.rst
new file mode 100644 (file)
index 0000000..63a640a
--- /dev/null
@@ -0,0 +1,2 @@
+On Android, python.pc now correctly reports the library to link to, the same
+as python-config.sh.
index 87e04decc2a2d56f539661efe9fdc45ed53b4318..027dba38585a89ec9008e5dd23098a8bd4419dae 100644 (file)
@@ -9,5 +9,5 @@ Description: Build a C extension for Python
 Requires:
 Version: @VERSION@
 Libs.private: @LIBS@
-Libs:
+Libs: -L${libdir} @LIBPYTHON@
 Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@