changeset: 100589:599328247e84 branch: 3.5 parent: 100586:6597ed952b77 user: Brett Cannon date: Fri Mar 18 10:29:43 2016 -0700 files: Misc/ACKS Misc/NEWS Tools/freeze/makemakefile.py description: 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. diff -r 6597ed952b77 -r 599328247e84 Misc/ACKS --- a/Misc/ACKS Fri Mar 18 14:36:47 2016 +0200 +++ b/Misc/ACKS Fri Mar 18 10:29:43 2016 -0700 @@ -1326,6 +1326,7 @@ Ha Shao Richard Shapiro Varun Sharma +Daniel Shaulov Vlad Shcherbina Justin Sheehy Charlie Shepherd diff -r 6597ed952b77 -r 599328247e84 Misc/NEWS --- a/Misc/NEWS Fri Mar 18 14:36:47 2016 +0200 +++ b/Misc/NEWS Fri Mar 18 10:29:43 2016 -0700 @@ -379,6 +379,9 @@ Tools/Demos ----------- +- Issue #26271: Fix the Freeze tool to properly use flags passed through + configure. Patch by Daniel Shaulov. + - Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci Teo. diff -r 6597ed952b77 -r 599328247e84 Tools/freeze/makemakefile.py --- a/Tools/freeze/makemakefile.py Fri Mar 18 14:36:47 2016 +0200 +++ b/Tools/freeze/makemakefile.py Fri Mar 18 10:29:43 2016 -0700 @@ -17,12 +17,12 @@ 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)