gh-99942: correct the pkg-config/python-config flags for cygwin/android

This commit is contained in:
Eli Schwartz 2023-02-16 12:57:59 -05:00 committed by GitHub
parent 68bd8c5e2e
commit 226484e475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
On Android, in a static build, python-config in embed mode no longer
incorrectly reports a library to link to.

2
configure generated vendored
View file

@ -21496,7 +21496,7 @@ $as_echo "$LDVERSION" >&6; }
# On Android and Cygwin the shared libraries must be linked with libpython.
if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
else
LIBPYTHON=''

View file

@ -5759,7 +5759,7 @@ AC_MSG_RESULT($LDVERSION)
# On Android and Cygwin the shared libraries must be linked with libpython.
AC_SUBST(LIBPYTHON)
if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
else
LIBPYTHON=''