[Python-checkins] bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)

miss-islington webhook-mailer at python.org
Fri Oct 22 14:30:02 EDT 2021


https://github.com/python/cpython/commit/269bf56e3d352c415ec38f93017ba8e291ddb18a
commit: 269bf56e3d352c415ec38f93017ba8e291ddb18a
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-10-22T11:29:52-07:00
summary:

bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)

(cherry picked from commit f6e8b80d20159596cf641305bad3a833bedd2f4f)

Co-authored-by: Christian Heimes <christian at python.org>

files:
A Misc/NEWS.d/next/Build/2021-10-22-15-28-29.bpo-45571.yY8NsJ.rst
M Modules/makesetup

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 0000000000000..f2042d11e24b7
--- /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 fefe3fd129ee3..1a767838c92be 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



More information about the Python-checkins mailing list