Uh oh!
There was an error while loading. Please reload this page.
bpo-21536: On Android, C extensions are linked to libpython - #12989
Conversation
vstinner
commented
Apr 29, 2019
LGTM. Thanks @xdegaye for this fix! I tested the PR on Linux: C extensions are still not linked to libpython, as expected. Xavier tested the cross-compilation to Android. |
embray
commented
May 24, 2019
Note: This is a follow-up to #12946. |
| # On Android the shared libraries must be linked with libpython. | ||
| AC_SUBST(LIBPYTHON) | ||
| if test -z "$ANDROID_API_LEVEL"; then |
There was a problem hiding this comment.
Out of curiosity, being that I'm unfamiliar with build issues on Android why the specific test for $ANDROID_API_LEVEL and not something more generic like:
case $host in
*-linux-android*) ....
?
Reason being, I need to add additional cases where libpython should be linked explicitly (e.g. Cygwin, MinGW, etc.) and it would be easier to build off the host_os for this than something very Android-specific.
There was a problem hiding this comment.
Using a test based on $ANDROID_API_LEVEL or on $host as you suggest is equivalent.
https://bugs.python.org/issue21536