]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45573: Introduce extension module flags in Makefile (GH-29594)
authorChristian Heimes <christian@python.org>
Thu, 18 Nov 2021 08:18:44 +0000 (10:18 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Nov 2021 08:18:44 +0000 (09:18 +0100)
commit25ecc040d007a55e4b5c30fa739054b52c1aacac
treea804c5fba2fba0e13a45dbd723eafee1f08f833f
parentfc4474e45eecbea8e88095f28c98c5d56438d841
bpo-45573: Introduce extension module flags in Makefile (GH-29594)

``configure`` now uses a standardized format to forward state, compiler
flags, and linker flags to ``Makefile``, ``setup.py``, and
``Modules/Setup``. ``makesetup`` use the new variables by default if a
module line does not contain any compiler or linker flags. ``setup.py``
has a new function ``addext()``.

For a module ``egg``, configure adds:

* ``MODULE_EGG`` with value yes, missing, disabled, or n/a
* ``MODULE_EGG_CFLAGS``
* ``MODULE_EGG_LDFLAGS``

``Makefile.pre.in`` may also provide ``MODULE_EGG_DEPS`` that lists
dependencies such as header files and static libs.

Signed-off-by: Christian Heimes <christian@python.org>
Makefile.pre.in
Misc/NEWS.d/next/Build/2021-11-17-19-02-51.bpo-45573.GMNdun.rst [new file with mode: 0644]
Modules/Setup
Modules/makesetup
aclocal.m4
configure
configure.ac
setup.py