]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-136677: Introduce executable specific linker flags to configure (#137296)
authorrueteh <60346006+rueteh@users.noreply.github.com>
Tue, 24 Feb 2026 22:52:02 +0000 (09:52 +1100)
committerGitHub <noreply@github.com>
Tue, 24 Feb 2026 22:52:02 +0000 (22:52 +0000)
commit4e45c9c309abb12c622334c7a419503d169af380
tree1d1a7911c26bb38fe9af8ef99c5f19a9273dc4ad
parent5e61a16c1058e5de66b71dfdc9720d40e9f515d9
gh-136677: Introduce executable specific linker flags to configure (#137296)

* introduce executable specific linker flags

Add PY_CORE_EXE_LDFLAGS and EXE_LDFLAGS which stores executable specific
LDFLAGS, replacing PY_CORE_LDFLAGS for building
executable targets.

If PY_CORE_EXE_LDFLAGS / EXE_LDFLAGS is not provided, then it defaults
to the value of PY_CORE_LDFLAGS which is the existing behaviour.

If both flags are supplied, and there is a need
to distinguish between executable and shared specific LDFLAGS,
in particular, PY_CORE_LDFLAGS should contain the shared specific LDFLAGS.

* documentation for new linker flags

* update Misc folder documentation

* Update Makefile.pre.in

Co-authored-by: Victor Stinner <vstinner@python.org>
---------

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Filipe Laíns <lains@riseup.net>
Doc/using/configure.rst
Lib/_osx_support.py
Lib/test/pythoninfo.py
Lib/test/test__osx_support.py
Makefile.pre.in
Misc/ACKS
Misc/NEWS.d/next/Build/2025-07-21-00-33-38.gh-issue-136677.Y1_3ec.rst [new file with mode: 0644]
configure
configure.ac