From: Gregory P. Smith Date: Wed, 4 Feb 2015 10:11:56 +0000 (-0800) Subject: Fixes issue23390: make profile-opt causes -fprofile-generate and related flags X-Git-Tag: v3.4.3rc1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f90aa63666308e7a9b2d0a89110e0be445a393a;p=python Fixes issue23390: make profile-opt causes -fprofile-generate and related flags to end up in distutils CFLAGS. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 70db601e74..76aef283e6 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -480,14 +480,14 @@ profile-opt: $(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