summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2024-04-12 07:37:38 (GMT)
committerGitHub <noreply@github.com>2024-04-12 07:37:38 (GMT)
commit49fc1414b52b31f6ad0408775d160ec0559c33bb (patch)
tree3016f9dd5238caa524b9e285a4f9889fee07e52d /configure
parent396b831850f0f364d584db4407a5d633f33e571c (diff)
downloadcpython-49fc1414b52b31f6ad0408775d160ec0559c33bb.zip
cpython-49fc1414b52b31f6ad0408775d160ec0559c33bb.tar.gz
cpython-49fc1414b52b31f6ad0408775d160ec0559c33bb.tar.bz2
gh-117752: Autoconf: fix -fno-semantic-interposition check (#117789)
Force the compiler to issue an error if the flag is not supported.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 15a645a..f2e628c 100755
--- a/configure
+++ b/configure
@@ -8241,13 +8241,13 @@ if test "$Py_OPT" = 'true' ; then
*gcc*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5
printf %s "checking whether C compiler accepts -fno-semantic-interposition... " >&6; }
-if test ${ax_cv_check_cflags___fno_semantic_interposition+y}
+if test ${ax_cv_check_cflags__Werror__fno_semantic_interposition+y}
then :
printf %s "(cached) " >&6
else $as_nop
ax_check_save_flags=$CFLAGS
- CFLAGS="$CFLAGS -fno-semantic-interposition"
+ CFLAGS="$CFLAGS -Werror -fno-semantic-interposition"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -8261,16 +8261,16 @@ main (void)
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
- ax_cv_check_cflags___fno_semantic_interposition=yes
+ ax_cv_check_cflags__Werror__fno_semantic_interposition=yes
else $as_nop
- ax_cv_check_cflags___fno_semantic_interposition=no
+ ax_cv_check_cflags__Werror__fno_semantic_interposition=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS=$ax_check_save_flags
fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_semantic_interposition" >&5
-printf "%s\n" "$ax_cv_check_cflags___fno_semantic_interposition" >&6; }
-if test "x$ax_cv_check_cflags___fno_semantic_interposition" = xyes
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_semantic_interposition" >&5
+printf "%s\n" "$ax_cv_check_cflags__Werror__fno_semantic_interposition" >&6; }
+if test "x$ax_cv_check_cflags__Werror__fno_semantic_interposition" = xyes
then :
CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition"