diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-12-20 16:03:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 16:03:01 +0100 |
commit | 0198f52ea2328fd932622ad2299381f617a041f2 (patch) | |
tree | 4a9f2733570b0f7349a04a209866d95a5f573d54 /configure | |
parent | 5d0498a6967d45042b7a9345f6d871047edbaa25 (diff) | |
download | cpython-git-0198f52ea2328fd932622ad2299381f617a041f2.tar.gz |
bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)
When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.
(cherry picked from commit cf10a750f4b50b6775719cfb17bee00bc3a9c60b)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -667,6 +667,7 @@ SHLIB_SUFFIX LIBTOOL_CRUFT OTHER_LIBTOOL_OPT UNIVERSAL_ARCH_FLAGS +LDFLAGS_NODIST CFLAGS_NODIST BASECFLAGS CFLAGS_ALIASING @@ -6671,7 +6672,7 @@ $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} fi CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" - LDFLAGS="$LDFLAGS $LTOFLAGS" + LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" fi # Enable PGO flags. @@ -6923,6 +6924,7 @@ fi + # The -arch flags for universal builds on OSX UNIVERSAL_ARCH_FLAGS= |