summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorstratakis <cstratak@redhat.com>2018-11-07 22:05:13 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-11-07 22:05:13 (GMT)
commitf6b9459996f5166300982d0427119eb326e74dac (patch)
tree931981f281bbb554ad2d5657dc2347b8c7e5f418 /Makefile.pre.in
parent774d46f86cb3addfec7a5c48077bd554c0c02104 (diff)
downloadcpython-f6b9459996f5166300982d0427119eb326e74dac.zip
cpython-f6b9459996f5166300982d0427119eb326e74dac.tar.gz
cpython-f6b9459996f5166300982d0427119eb326e74dac.tar.bz2
[3.6] bpo-31354: Let configure --with-lto work on all builds (GH-10261)
Allow configure --with-lto to apply to all builds, not just profile-opt builds. Whether this is actually useful or not must be determined by the person building CPython using their own toolchain. My own quick test on x86_64 Debian 9 (gcc 6.3, binutils 2.28) seemed to suggest that it wasn't, but I expect better toolchains can or will exist at some point. The point is to allow it at all.
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 d912a19..82f7edd 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -473,7 +473,7 @@ profile-opt:
$(MAKE) profile-removal
build_all_generate_profile:
- $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)"
+ $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG)" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG)" LIBS="$(LIBS)"
run_profile_task:
: # FIXME: can't run for a cross build
@@ -483,7 +483,7 @@ build_all_merge_profile:
$(LLVM_PROF_MERGER)
build_all_use_profile:
- $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@"
+ $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG)" LDFLAGS="$(LDFLAGS)"
# Compile and run with gcov
.PHONY=coverage coverage-lcov coverage-report