diff options
author | xdegaye <xdegaye@gmail.com> | 2019-04-29 07:27:40 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-04-29 07:27:40 (GMT) |
commit | 254b309c801f82509597e3d7d4be56885ef94c11 (patch) | |
tree | ae96f759a67bfb4aaea873da5a488fb1e4e80ab6 /configure | |
parent | b021ba50284cdfc200b5d18dc4dea80218fcbe91 (diff) | |
download | cpython-254b309c801f82509597e3d7d4be56885ef94c11.zip cpython-254b309c801f82509597e3d7d4be56885ef94c11.tar.gz cpython-254b309c801f82509597e3d7d4be56885ef94c11.tar.bz2 |
bpo-21536: On Android, C extensions are linked to libpython (GH-12989)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -631,6 +631,7 @@ SRCDIRS THREADHEADERS LIBPL PY_ENABLE_SHARED +LIBPYTHON EXT_SUFFIX ALT_SOABI SOABI @@ -15154,6 +15155,14 @@ LDVERSION='$(VERSION)$(ABIFLAGS)' { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 $as_echo "$LDVERSION" >&6; } +# On Android the shared libraries must be linked with libpython. + +if test -z "$ANDROID_API_LEVEL"; then + LIBPYTHON='' +else + LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" +fi + if test x$PLATFORM_TRIPLET = x; then LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" |