diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-09 00:35:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 00:35:13 -0800 |
commit | f2d2cb12f2d3bd68a13c4098311e725f776768ad (patch) | |
tree | 284b366770600fe197bf72a0aa8163f4c2dadb3f /configure | |
parent | f83ee476d48dbeb90ddf3526b04936a49a87973a (diff) | |
download | cpython-git-f2d2cb12f2d3bd68a13c4098311e725f776768ad.tar.gz |
bpo-35351: Pass link time optimization flags to CFLAGS_NODIST (GH-10797)
When using link time optimizations, the -flto flag is passed to
BASECFLAGS, which makes it propagate to distutils. Those flags
should be reserved for the interpreter and the stdlib extension
modules only, thus moving those flags to CFLAGS_NODIST.
(cherry picked from commit f92c7aa1ae81efa475b5aecf66e4711ef0f52c4c)
Co-authored-by: stratakis <cstratak@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6726,7 +6726,7 @@ $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} LTOFLAGS="$LTOFLAGS -g" fi - BASECFLAGS="$BASECFLAGS $LTOFLAGS" + CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" LDFLAGS="$LDFLAGS $LTOFLAGS" fi |