summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-03-18 17:29:43 (GMT)
committerBrett Cannon <brett@python.org>2016-03-18 17:29:43 (GMT)
commite4044bfe63a239cad9d4c51b02c256c2a160eb66 (patch)
treefca4ebbea46ec89ca0a694b88cb8fd01fef11dc3 /Tools/freeze
parent774006232a0923d43c30cf233c5dee210bbb3bcf (diff)
downloadcpython-e4044bfe63a239cad9d4c51b02c256c2a160eb66.zip
cpython-e4044bfe63a239cad9d4c51b02c256c2a160eb66.tar.gz
cpython-e4044bfe63a239cad9d4c51b02c256c2a160eb66.tar.bz2
Issue #26271: Fix the Freeze tool to use variables passed in from the
configure script related to compiler flags. Thanks to Daniel Shaulov for the bug report and patch.
Diffstat (limited to 'Tools/freeze')
-rw-r--r--Tools/freeze/makemakefile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/freeze/makemakefile.py b/Tools/freeze/makemakefile.py
index 32e804c..fa43faf 100644
--- a/Tools/freeze/makemakefile.py
+++ b/Tools/freeze/makemakefile.py
@@ -17,12 +17,12 @@ def makemakefile(outfp, makevars, files, target):
base = os.path.basename(file)
dest = base[:-2] + '.o'
outfp.write("%s: %s\n" % (dest, file))
- outfp.write("\t$(CC) $(CFLAGS) $(CPPFLAGS) -c %s\n" % file)
+ outfp.write("\t$(CC) $(PY_CFLAGS) $(PY_CPPFLAGS) -c %s\n" % file)
files[i] = dest
deps.append(dest)
outfp.write("\n%s: %s\n" % (target, ' '.join(deps)))
- outfp.write("\t$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" %
+ outfp.write("\t$(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" %
(' '.join(files), target))
outfp.write("\nclean:\n\t-rm -f *.o %s\n" % target)