]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111225: Link extension modules against libpython on Android (#115780)
authorMalcolm Smith <smith@chaquo.com>
Wed, 21 Feb 2024 23:18:57 +0000 (23:18 +0000)
committerGitHub <noreply@github.com>
Wed, 21 Feb 2024 23:18:57 +0000 (23:18 +0000)
commit7f5e3f04f838686d65f1053a5e47f5d3faf0b228
tree3460842977a6392fa59715777ecdf130667079c6
parent113687a8381d6dde179aeede607bcbca5c09d182
gh-111225: Link extension modules against libpython on Android (#115780)

Part of the work on PEP 738: Adding Android as a supported platform.

* Rename the LIBPYTHON variable to MODULE_LDFLAGS, to more accurately
  reflect its purpose.
* Edit makesetup to use MODULE_LDFLAGS when linking extension modules.
* Edit the Makefile so that extension modules depend on libpython on
  Android and Cygwin.
* Restore `-fPIC` on Android. It was removed several years ago with a
  note that the toolchain used it automatically, but this is no longer
  the case. Omitting it causes all linker commands to fail with an error
  like `relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against
  symbol '_Py_FalseStruct'; recompile with -fPIC`.
Makefile.pre.in
Misc/NEWS.d/next/Build/2024-02-21-18-22-49.gh-issue-111225.Z8C3av.rst [new file with mode: 0644]
Modules/makesetup
configure
configure.ac