mirror of
https://github.com/python/cpython.git
synced 2025-09-08 01:41:19 +00:00
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.
This commit is contained in:
parent
e63e617ebb
commit
f92c7aa1ae
3 changed files with 4 additions and 2 deletions
2
configure
vendored
2
configure
vendored
|
@ -6626,7 +6626,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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue