]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)
authorChristian Heimes <christian@python.org>
Fri, 22 Oct 2021 18:02:54 +0000 (21:02 +0300)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 18:02:54 +0000 (20:02 +0200)
Misc/NEWS.d/next/Build/2021-10-22-15-28-29.bpo-45571.yY8NsJ.rst [new file with mode: 0644]
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 (file)
index 0000000..f2042d1
--- /dev/null
@@ -0,0 +1,2 @@
+``Modules/Setup`` now use ``PY_CFLAGS_NODIST`` instead of ``PY_CFLAGS`` to
+compile shared modules.
index fefe3fd129ee3b2440714aeaec91dd075e92699a..1a767838c92be9b87b20a0deaa7f3f3810ab04fa 100755 (executable)
@@ -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