Separate CFLAGS and CPPFLAGS. CFLAGS should not contain preprocessor
directives, which is the role of CPPFLAGS. Closes SF patch #414991.
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index dfd0369..b534098 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -424,7 +424,8 @@
outfp.close()
infp.close()
- cflags = defines + includes + ['$(OPT)']
+ cflags = ['$(OPT)']
+ cppflags = defines + includes
libs = [os.path.join(binlib, 'libpython$(VERSION).a')]
somevars = {}
@@ -434,6 +435,7 @@
somevars[key] = makevars[key]
somevars['CFLAGS'] = string.join(cflags) # override
+ somevars['CPPFLAGS'] = string.join(cppflags) # override
files = ['$(OPT)', '$(LDFLAGS)', base_config_c, base_frozen_c] + \
files + supp_sources + addfiles + libs + \
['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)']