changeset: 100590:364895e54bb0 parent: 100588:11f920264454 parent: 100589:599328247e84 user: Brett Cannon date: Fri Mar 18 10:30:21 2016 -0700 files: Misc/ACKS Misc/NEWS description: Merge for issue #26271 diff -r 11f920264454 -r 364895e54bb0 Misc/ACKS --- a/Misc/ACKS Fri Mar 18 15:10:43 2016 +0100 +++ b/Misc/ACKS Fri Mar 18 10:30:21 2016 -0700 @@ -1333,6 +1333,7 @@ Ha Shao Richard Shapiro Varun Sharma +Daniel Shaulov Vlad Shcherbina Justin Sheehy Charlie Shepherd diff -r 11f920264454 -r 364895e54bb0 Misc/NEWS --- a/Misc/NEWS Fri Mar 18 15:10:43 2016 +0100 +++ b/Misc/NEWS Fri Mar 18 10:30:21 2016 -0700 @@ -910,6 +910,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 11f920264454 -r 364895e54bb0 Tools/freeze/makemakefile.py --- a/Tools/freeze/makemakefile.py Fri Mar 18 15:10:43 2016 +0100 +++ b/Tools/freeze/makemakefile.py Fri Mar 18 10:30:21 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)