Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32cba67

Browse files
committed
Merge for issue #26271
2 parents 9b46a57 + e4044bf commit 32cba67

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,7 @@ Mark Shannon
13331333
Ha Shao
13341334
Richard Shapiro
13351335
Varun Sharma
1336+
Daniel Shaulov
13361337
Vlad Shcherbina
13371338
Justin Sheehy
13381339
Charlie Shepherd

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,9 @@ Windows
910910
Tools/Demos
911911
-----------
912912

913+
- Issue #26271: Fix the Freeze tool to properly use flags passed through
914+
configure. Patch by Daniel Shaulov.
915+
913916
- Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py.
914917
Patch by Guo Ci Teo.
915918

Tools/freeze/makemakefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ def makemakefile(outfp, makevars, files, target):
1717
base = os.path.basename(file)
1818
dest = base[:-2] + '.o'
1919
outfp.write("%s: %s\n" % (dest, file))
20-
outfp.write("\t$(CC) $(CFLAGS) $(CPPFLAGS) -c %s\n" % file)
20+
outfp.write("\t$(CC) $(PY_CFLAGS) $(PY_CPPFLAGS) -c %s\n" % file)
2121
files[i] = dest
2222
deps.append(dest)
2323

2424
outfp.write("\n%s: %s\n" % (target, ' '.join(deps)))
25-
outfp.write("\t$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" %
25+
outfp.write("\t$(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" %
2626
(' '.join(files), target))
2727

2828
outfp.write("\nclean:\n\t-rm -f *.o %s\n" % target)

0 commit comments

Comments
 (0)