diff options
author | Malcolm Smith <smith@chaquo.com> | 2024-02-29 21:58:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 21:58:20 (GMT) |
commit | fa1d675309c6a08b0833cf25cffe476c6166aba3 (patch) | |
tree | bae7a83188f5479056e25f0032f7076c1291f878 /Modules/_multiprocessing | |
parent | ccfc042bbf31e53c44b8aae444afd8365b798422 (diff) | |
download | cpython-fa1d675309c6a08b0833cf25cffe476c6166aba3.zip cpython-fa1d675309c6a08b0833cf25cffe476c6166aba3.tar.gz cpython-fa1d675309c6a08b0833cf25cffe476c6166aba3.tar.bz2 |
gh-71052: Fix several Android build issues (#115955)
This change is part of the work on PEP-738: Adding Android as a
supported platform.
* Remove the "1.0" suffix from libpython's filename on Android, which
would prevent Gradle from packaging it into an app.
* Simplify the build command in the Makefile so that libpython always
gets given an SONAME with the `-Wl-h` argument, even if the SONAME is
identical to the actual filename.
* Disable a number of functions on Android which can be compiled and
linked against, but always fail at runtime. As a result, the native
_multiprocessing module is no longer built for Android.
* gh-115390 (bee7bb331) added some pre-determined results to the
configure script for things that can't be autodetected when
cross-compiling; this change adds Android to these where appropriate.
* Add a couple more pre-determined results for Android, and making them
cover iOS as well. This means the --enable-ipv6 configure option will
no longer be required on either platform.
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r-- | Modules/_multiprocessing/multiprocessing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 2e6d8eb..1f6ab71 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -181,7 +181,7 @@ static PyMethodDef module_methods[] = { _MULTIPROCESSING_RECV_METHODDEF _MULTIPROCESSING_SEND_METHODDEF #endif -#if !defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__) +#if !defined(POSIX_SEMAPHORES_NOT_ENABLED) _MULTIPROCESSING_SEM_UNLINK_METHODDEF #endif {NULL} |