summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorxdegaye <xdegaye@gmail.com>2019-04-29 07:27:40 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-04-29 07:27:40 (GMT)
commit254b309c801f82509597e3d7d4be56885ef94c11 (patch)
treeae96f759a67bfb4aaea873da5a488fb1e4e80ab6 /configure
parentb021ba50284cdfc200b5d18dc4dea80218fcbe91 (diff)
downloadcpython-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-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 7f26fab..8d9c73d 100755
--- a/configure
+++ b/configure
@@ -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}"