diff --git a/Misc/ACKS b/Misc/ACKS index 10ac51e8add..27e5767e8c9 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1333,6 +1333,7 @@ Mark Shannon Ha Shao Richard Shapiro Varun Sharma +Daniel Shaulov Vlad Shcherbina Justin Sheehy Charlie Shepherd diff --git a/Misc/NEWS b/Misc/NEWS index 81bbad6ccd2..cef2b817b44 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -910,6 +910,9 @@ Windows 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 --git a/Tools/freeze/makemakefile.py b/Tools/freeze/makemakefile.py index 32e804c551e..fa43fafe1e5 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)