summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-22 11:29:52 -0700
committerGitHub <noreply@github.com>2021-10-22 11:29:52 -0700
commit269bf56e3d352c415ec38f93017ba8e291ddb18a (patch)
treea4b27287ea384233894f71c6d51bd7c6cb2018c3
parentaa8c3446c085175e65e736b0d2e32719c00004d2 (diff)
downloadcpython-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.rst2
-rwxr-xr-xModules/makesetup2
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