Fixes issue26307: The profile-opt build now applys PGO to the built-in modules.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 04499dc..80f1191 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1593,7 +1593,7 @@
 	-rm -f pybuilddir.txt
 	-rm -f Lib/lib2to3/*Grammar*.pickle
 	-rm -f Programs/_testembed Programs/_freeze_importlib
-	-rm -rf build
+	-find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
 
 profile-removal:
 	find . -name '*.gc??' -exec rm -f {} ';'
diff --git a/Misc/NEWS b/Misc/NEWS
index 0438f07..b2a8680 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@
 Core and Builtins
 -----------------
 
+- Issue #26307: The profile-opt build now applys PGO to the built-in modules.
+
 - Issue #27078: Added BUILD_STRING opcode.  Optimized f-strings evaluation.
 
 - Issue #17884: Python now requires systems with inttypes.h and stdint.h