]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-71052: Fix several Android build issues (#115955)
authorMalcolm Smith <smith@chaquo.com>
Thu, 29 Feb 2024 21:58:20 +0000 (21:58 +0000)
committerGitHub <noreply@github.com>
Thu, 29 Feb 2024 21:58:20 +0000 (22:58 +0100)
commitfa1d675309c6a08b0833cf25cffe476c6166aba3
treebae7a83188f5479056e25f0032f7076c1291f878
parentccfc042bbf31e53c44b8aae444afd8365b798422
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.
Lib/ctypes/__init__.py
Makefile.pre.in
Misc/NEWS.d/next/Build/2024-02-26-14-54-58.gh-issue-71052.XvFay1.rst [new file with mode: 0644]
Modules/_multiprocessing/multiprocessing.c
configure
configure.ac