aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-10-21 22:46:52 +0100
committerGitHub <noreply@github.com>2020-10-21 22:46:52 +0100
commitb451b0e9a772f009f4161f7a46476190d0d17ac1 (patch)
treef25e00d32d535a732f4bf189a892a04d7479c6cf /configure
parentbpo-35181: Correct importlib documentation for some module attributes (GH-15190) (diff)
downloadcpython-b451b0e9a772f009f4161f7a46476190d0d17ac1.tar.gz
cpython-b451b0e9a772f009f4161f7a46476190d0d17ac1.tar.bz2
cpython-b451b0e9a772f009f4161f7a46476190d0d17ac1.zip
bpo-38980: Add -fno-semantic-interposition when building with optimizations (GH-22862)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 88b78947767..df7118f68d3 100755
--- a/configure
+++ b/configure
@@ -6482,6 +6482,14 @@ if test "$Py_OPT" = 'true' ; then
DEF_MAKE_ALL_RULE="profile-opt"
REQUIRE_PGO="yes"
DEF_MAKE_RULE="build_all"
+ case $CC in
+ *gcc*)
+ CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition"
+ LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition"
+ ;;
+ esac
+
+
else
DEF_MAKE_ALL_RULE="build_all"
REQUIRE_PGO="no"