Skip to content

Commit

Permalink
gh-99942: correct the pkg-config/python-config flags for cygwin/android
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-schwartz authored Feb 16, 2023
1 parent 68bd8c5 commit 226484e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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=''
Expand Down

0 comments on commit 226484e

Please sign in to comment.