diff options
author | Gregory P. Smith <greg@krypto.org> | 2015-02-04 10:11:56 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2015-02-04 10:11:56 (GMT) |
commit | 2f90aa63666308e7a9b2d0a89110e0be445a393a (patch) | |
tree | 2321ce17c2c45d47fa275d7b828b999a56f08cfc /Makefile.pre.in | |
parent | b9a3dd9dfb780b9691f8a1859fd67cf9eadbd2d0 (diff) | |
download | cpython-2f90aa63666308e7a9b2d0a89110e0be445a393a.zip cpython-2f90aa63666308e7a9b2d0a89110e0be445a393a.tar.gz cpython-2f90aa63666308e7a9b2d0a89110e0be445a393a.tar.bz2 |
Fixes issue23390: make profile-opt causes -fprofile-generate and related flags
to end up in distutils CFLAGS.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 70db601..76aef28 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 |