cpython
cpython copied to clipboard
gh-136677: Introduce executable specific linker flags to configure
Introduce two new flags EXE_LDFLAGS and PY_CORE_EXE_LDFLAGS to contain executable target specific linker options for building the python interpreter as well as other executables.
- Issue: gh-136677
Notes
If provided, this effectively means that PY_CORE_LDFLAGS (as well as the chain of flags used by this variable) is exclusively used to build shared libraries / bundles. In addition, any common linker flags applicable to both types of targets would also need to be supplied to EXE_LDFLAGS and LDFLAGS.
📚 Documentation preview 📚: https://cpython-previews--137296.org.readthedocs.build/