mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
gh-99942: correct the pkg-config/python-config flags for cygwin/android
This commit is contained in:
parent
68bd8c5e2e
commit
226484e475
|
@ -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
2
configure
generated
vendored
|
@ -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=''
|
||||
|
|
|
@ -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=''
|
||||
|
|
Loading…
Reference in a new issue