diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2023-02-22 01:21:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 01:21:24 (GMT) |
commit | 3ba7743b0696202e9caa283a0be253fd26a5cfbd (patch) | |
tree | 3ad6316d8721a1bfd59badc8c9498b847efa1950 | |
parent | d5c7954d0c3ff874d2d27d33dcc207bb7356f328 (diff) | |
download | cpython-3ba7743b0696202e9caa283a0be253fd26a5cfbd.zip cpython-3ba7743b0696202e9caa283a0be253fd26a5cfbd.tar.gz cpython-3ba7743b0696202e9caa283a0be253fd26a5cfbd.tar.bz2 |
gh-99942: python.pc on android/cygwin should link to libpython per configure.ac (GH-100356)
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
-rw-r--r-- | Misc/NEWS.d/next/Build/2022-12-20-01-06-17.gh-issue-99942.lbmzYj.rst | 2 | ||||
-rw-r--r-- | Misc/python.pc.in | 2 |
2 files changed, 3 insertions, 1 deletions
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 index 0000000..63a640a --- /dev/null +++ b/Misc/NEWS.d/next/Build/2022-12-20-01-06-17.gh-issue-99942.lbmzYj.rst @@ -0,0 +1,2 @@ +On Android, python.pc now correctly reports the library to link to, the same +as python-config.sh. diff --git a/Misc/python.pc.in b/Misc/python.pc.in index 87e04de..027dba3 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: +Libs: -L${libdir} @LIBPYTHON@ Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@ |