gh-99942: python.pc on android/cygwin should link to libpython per configure.ac (GH-100356)

In commit 254b309c80 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
This commit is contained in:
Eli Schwartz 2023-02-21 20:21:24 -05:00 committed by GitHub
parent d5c7954d0c
commit 3ba7743b06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
On Android, python.pc now correctly reports the library to link to, the same
as python-config.sh.

View 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@