[Python-checkins] cpython (3.4): Fixes issue23390: make profile-opt causes -fprofile-generate and related flags

gregory.p.smith python-checkins at python.org
Wed Feb 4 11:20:29 CET 2015


https://hg.python.org/cpython/rev/8957ff9776bd
changeset:   94498:8957ff9776bd
branch:      3.4
parent:      94496:ef1d338bec8f
user:        Gregory P. Smith <greg at krypto.org>
date:        Wed Feb 04 02:11:56 2015 -0800
summary:
  Fixes issue23390: make profile-opt causes -fprofile-generate and related flags
to end up in distutils CFLAGS.

files:
  Makefile.pre.in |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -480,14 +480,14 @@
 	$(MAKE) build_all_use_profile
 
 build_all_generate_profile:
-	$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov"
+	$(MAKE) all CFLAGS_NODIST="$(CFLAGS) -fprofile-generate" LDFLAGS="-fprofile-generate" LIBS="$(LIBS) -lgcov"
 
 run_profile_task:
 	: # FIXME: can't run for a cross build
 	$(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
 
 build_all_use_profile:
-	$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use -fprofile-correction"
+	$(MAKE) all CFLAGS_NODIST="$(CFLAGS) -fprofile-use -fprofile-correction"
 
 # Compile and run with gcov
 .PHONY=coverage coverage-lcov coverage-report

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list