[Python-checkins] closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. (GH-8712)

Miss Islington (bot) webhook-mailer at python.org
Mon Nov 26 21:33:02 EST 2018


https://github.com/python/cpython/commit/716a8089b04095acaba493925751df194a4916bb
commit: 716a8089b04095acaba493925751df194a4916bb
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-11-26T18:32:57-08:00
summary:

closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. (GH-8712)

(cherry picked from commit da324d53d420347344236ff64cf5eb9b675d6f86)

Co-authored-by: E. M. Bray <erik.m.bray at gmail.com>

files:
M Makefile.pre.in
M Modules/makesetup

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 4c23c0e4114a..afbc8f8c9bea 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -107,6 +107,7 @@ ARFLAGS=	@ARFLAGS@
 CFLAGSFORSHARED=@CFLAGSFORSHARED@
 # C flags used for building the interpreter object files
 PY_STDMODULE_CFLAGS= $(PY_CFLAGS) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS) $(CFLAGSFORSHARED)
+PY_BUILTIN_MODULE_CFLAGS= $(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE_BUILTIN
 PY_CORE_CFLAGS=	$(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE
 # Strict or non-strict aliasing flags used to compile dtoa.c, see above
 CFLAGS_ALIASING=@CFLAGS_ALIASING@
diff --git a/Modules/makesetup b/Modules/makesetup
index 020b19938c48..eac97ad1346c 100755
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -233,7 +233,7 @@ sed -e 's/[ 	]*#.*//' -e '/^[ 	]*$/d' |
 			case $doconfig in
 			no)	cc="$cc \$(CCSHARED) \$(PY_CFLAGS) \$(PY_CPPFLAGS)";;
 			*)
-				cc="$cc \$(PY_STDMODULE_CFLAGS)";;
+				cc="$cc \$(PY_BUILTIN_MODULE_CFLAGS)";;
 			esac
 			rule="$obj: $src; $cc $cpps -c $src -o $obj"
 			echo "$rule" >>$rulesf



More information about the Python-checkins mailing list