bpo-38980: Add -fno-semantic-interposition when building with optimizations (GH-22862)

This commit is contained in:
Pablo Galindo 2020-10-21 22:46:52 +01:00 committed by GitHub
parent 27f1bd8787
commit b451b0e9a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 0 deletions

8
configure vendored
View file

@ -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"