gh-99942: fix regression in python.pc that broke linking on android/c… · python/cpython@57e63ca (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 57e63ca
gh-99942: fix regression in python.pc that broke linking on android/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.
File tree
2 files changed
lines changed
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1 | +On Android, python.pc now correctly reports the library to link to, the same | |
2 | +as python-config.sh. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -9,5 +9,5 @@ Description: Build a C extension for Python | ||
9 | 9 | Requires: |
10 | 10 | Version: @VERSION@ |
11 | 11 | Libs.private: @LIBS@ |
12 | -Libs: | |
12 | +Libs: -L${libdir} @LIBPYTHON@ | |
13 | 13 | Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@ |