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
--- /dev/null
+On Android, python.pc now correctly reports the library to link to, the same
+as python-config.sh.
Requires:
Version: @VERSION@
Libs.private: @LIBS@
-Libs:
+Libs: -L${libdir} @LIBPYTHON@
Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@