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

Skip to content

Commit e4044bf

Browse files
committed
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.
1 parent 7740062 commit e4044bf

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
@@ -1326,6 +1326,7 @@ Mark Shannon
13261326
Ha Shao
13271327
Richard Shapiro
13281328
Varun Sharma
1329+
Daniel Shaulov
13291330
Vlad Shcherbina
13301331
Justin Sheehy
13311332
Charlie Shepherd

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ Windows
379379
Tools/Demos
380380
-----------
381381

382+
- Issue #26271: Fix the Freeze tool to properly use flags passed through
383+
configure. Patch by Daniel Shaulov.
384+
382385
- Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py.
383386
Patch by Guo Ci Teo.
384387

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)