commit | b451b0e9a772f009f4161f7a46476190d0d17ac1 | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Wed Oct 21 22:46:52 2020 +0100 |
committer | GitHub <noreply@github.com> | Wed Oct 21 22:46:52 2020 +0100 |
tree | f25e00d32d535a732f4bf189a892a04d7479c6cf | |
parent | 27f1bd8787d24ac53cc3dc6ea5eb00b8a3499839 [diff] [blame] |
bpo-38980: Add -fno-semantic-interposition when building with optimizations (GH-22862)
diff --git a/configure b/configure index 88b7894..df7118f 100755 --- a/configure +++ b/configure
@@ -6482,6 +6482,14 @@ 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"