summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-02-04 10:16:13 (GMT)
committerGregory P. Smith <greg@krypto.org>2015-02-04 10:16:13 (GMT)
commit28fe4965986e4b5b3e6024f79a2670be6df78c3c (patch)
tree20b977cfc71974ba2d044447cf914b6d46722837 /Makefile.pre.in
parent8f2fae1e7d7142a280a23bb9428d0aaddbb518c5 (diff)
parent2f90aa63666308e7a9b2d0a89110e0be445a393a (diff)
downloadcpython-28fe4965986e4b5b3e6024f79a2670be6df78c3c.zip
cpython-28fe4965986e4b5b3e6024f79a2670be6df78c3c.tar.gz
cpython-28fe4965986e4b5b3e6024f79a2670be6df78c3c.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.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 9870b2d..55032d0 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -488,14 +488,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