Skip to content

Commit 226484e

Browse files
authored
gh-99942: correct the pkg-config/python-config flags for cygwin/android
1 parent 68bd8c5 commit 226484e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
On Android, in a static build, python-config in embed mode no longer
2+
incorrectly reports a library to link to.

configure

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -5759,7 +5759,7 @@ AC_MSG_RESULT($LDVERSION)
57595759

57605760
# On Android and Cygwin the shared libraries must be linked with libpython.
57615761
AC_SUBST(LIBPYTHON)
5762-
if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
5762+
if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
57635763
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
57645764
else
57655765
LIBPYTHON=''

0 commit comments

Comments
 (0)