diff options
author | Malcolm Smith <smith@chaquo.com> | 2024-05-01 16:47:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 16:47:54 (GMT) |
commit | 75955110a643875b5d096b6eda06dcc6e542e171 (patch) | |
tree | 580a21e484ac585bf155c23e3fa311dd073914af /Android | |
parent | 6d12f4469c5f9e24809df28b19900722d52af11b (diff) | |
download | cpython-75955110a643875b5d096b6eda06dcc6e542e171.zip cpython-75955110a643875b5d096b6eda06dcc6e542e171.tar.gz cpython-75955110a643875b5d096b6eda06dcc6e542e171.tar.bz2 |
gh-116622: Android sysconfig updates (#118352)
Diffstat (limited to 'Android')
-rw-r--r-- | Android/android-env.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Android/android-env.sh b/Android/android-env.sh index 3ce3e03..545d559 100644 --- a/Android/android-env.sh +++ b/Android/android-env.sh @@ -61,6 +61,12 @@ done export CFLAGS="" export LDFLAGS="-Wl,--build-id=sha1 -Wl,--no-rosegment" +# Unlike Linux, Android does not implicitly use a dlopened library to resolve +# relocations in subsequently-loaded libraries, even if RTLD_GLOBAL is used +# (https://github.com/android/ndk/issues/1244). So any library that fails to +# build with this flag, would also fail to load at runtime. +LDFLAGS="$LDFLAGS -Wl,--no-undefined" + # Many packages get away with omitting -lm on Linux, but Android is stricter. LDFLAGS="$LDFLAGS -lm" |