Skip to content

Commit

Permalink
pythongh-99942: fix regression in python.pc that broke linking on and…
Browse files Browse the repository at this point in the history
…roid/cygwin

In commit 254b309 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.
  • Loading branch information
eli-schwartz committed Dec 29, 2022
1 parent 2df82db commit 9824b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
On Android, python.pc now correctly reports the library to link to, the same
as python-config.sh.
2 changes: 1 addition & 1 deletion Misc/python.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@

0 comments on commit 9824b73

Please sign in to comment.