diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-22 11:29:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 11:29:52 -0700 |
commit | 269bf56e3d352c415ec38f93017ba8e291ddb18a (patch) | |
tree | a4b27287ea384233894f71c6d51bd7c6cb2018c3 | |
parent | aa8c3446c085175e65e736b0d2e32719c00004d2 (diff) | |
download | cpython-git-269bf56e3d352c415ec38f93017ba8e291ddb18a.tar.gz |
bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)
(cherry picked from commit f6e8b80d20159596cf641305bad3a833bedd2f4f)
Co-authored-by: Christian Heimes <christian@python.org>
-rw-r--r-- | Misc/NEWS.d/next/Build/2021-10-22-15-28-29.bpo-45571.yY8NsJ.rst | 2 | ||||
-rwxr-xr-x | Modules/makesetup | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS.d/next/Build/2021-10-22-15-28-29.bpo-45571.yY8NsJ.rst b/Misc/NEWS.d/next/Build/2021-10-22-15-28-29.bpo-45571.yY8NsJ.rst new file mode 100644 index 0000000000..f2042d11e2 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2021-10-22-15-28-29.bpo-45571.yY8NsJ.rst @@ -0,0 +1,2 @@ +``Modules/Setup`` now use ``PY_CFLAGS_NODIST`` instead of ``PY_CFLAGS`` to +compile shared modules. diff --git a/Modules/makesetup b/Modules/makesetup index fefe3fd129..1a767838c9 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -231,7 +231,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | *) src='$(srcdir)/'"$srcdir/$src";; esac case $doconfig in - no) cc="$cc \$(CCSHARED) \$(PY_CFLAGS) \$(PY_CPPFLAGS)";; + no) cc="$cc \$(CCSHARED) \$(PY_CFLAGS_NODIST) \$(PY_CPPFLAGS)";; *) cc="$cc \$(PY_BUILTIN_MODULE_CFLAGS)";; esac |