diff --git a/configure b/configure index b2024bab2fb065..66c824fb6206e2 100755 --- a/configure +++ b/configure @@ -26049,7 +26049,7 @@ fi as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl" if test "x$py_cv_module__struct" = xyes; then : - + as_fn_append MODULE_BLOCK "MODULE__STRUCT_CFLAGS=-fno-strict-overflow$as_nl" fi @@ -26199,7 +26199,7 @@ fi as_fn_append MODULE_BLOCK "MODULE_AUDIOOP_STATE=$py_cv_module_audioop$as_nl" if test "x$py_cv_module_audioop" = xyes; then : - + as_fn_append MODULE_BLOCK "MODULE_AUDIOOP_CFLAGS=-fno-strict-overflow$as_nl" as_fn_append MODULE_BLOCK "MODULE_AUDIOOP_LDFLAGS=$LIBM$as_nl" fi @@ -27149,7 +27149,7 @@ fi as_fn_append MODULE_BLOCK "MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl" if test "x$py_cv_module__ctypes" = xyes; then : - as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=$LIBFFI_CFLAGS$as_nl" + as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=-fno-strict-overflow $LIBFFI_CFLAGS$as_nl" as_fn_append MODULE_BLOCK "MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl" fi @@ -27718,7 +27718,7 @@ fi as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl" if test "x$py_cv_module__testcapi" = xyes; then : - + as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_CFLAGS=-fno-strict-overflow$as_nl" fi diff --git a/configure.ac b/configure.ac index a61adcc817e82f..a6b2b9974e2dab 100644 --- a/configure.ac +++ b/configure.ac @@ -7222,7 +7222,7 @@ PY_STDLIB_MOD_SIMPLE([_posixsubprocess]) PY_STDLIB_MOD_SIMPLE([_queue]) PY_STDLIB_MOD_SIMPLE([_random]) PY_STDLIB_MOD_SIMPLE([select]) -PY_STDLIB_MOD_SIMPLE([_struct]) +PY_STDLIB_MOD_SIMPLE([_struct], [-fno-strict-overflow]) PY_STDLIB_MOD_SIMPLE([_typing]) PY_STDLIB_MOD_SIMPLE([_xxsubinterpreters]) PY_STDLIB_MOD_SIMPLE([_zoneinfo]) @@ -7236,7 +7236,7 @@ PY_STDLIB_MOD([_posixshmem], [$POSIXSHMEM_CFLAGS], [$POSIXSHMEM_LIBS]) dnl needs libm -PY_STDLIB_MOD_SIMPLE([audioop], [], [$LIBM]) +PY_STDLIB_MOD_SIMPLE([audioop], [-fno-strict-overflow], [$LIBM]) PY_STDLIB_MOD_SIMPLE([_statistics], [], [$LIBM]) PY_STDLIB_MOD_SIMPLE([cmath], [], [$LIBM]) PY_STDLIB_MOD_SIMPLE([math], [], [$LIBM]) @@ -7297,7 +7297,7 @@ PY_STDLIB_MOD([_crypt], [$LIBCRYPT_CFLAGS], [$LIBCRYPT_LIBS]) PY_STDLIB_MOD([_ctypes], [], [test "$have_libffi" = yes], - [$LIBFFI_CFLAGS], [$LIBFFI_LIBS]) + [-fno-strict-overflow $LIBFFI_CFLAGS], [$LIBFFI_LIBS]) PY_STDLIB_MOD([_curses], [], [test "$have_curses" != "no"], [$CURSES_CFLAGS], [$CURSES_LIBS] @@ -7347,7 +7347,7 @@ PY_STDLIB_MOD([_hashlib], [], [test "$ac_cv_working_openssl_hashlib" = yes], [$OPENSSL_INCLUDES], [$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS]) dnl test modules -PY_STDLIB_MOD([_testcapi], [test "$TEST_MODULES" = yes]) +PY_STDLIB_MOD([_testcapi], [test "$TEST_MODULES" = yes], [], [-fno-strict-overflow]) PY_STDLIB_MOD([_testinternalcapi], [test "$TEST_MODULES" = yes]) PY_STDLIB_MOD([_testbuffer], [test "$TEST_MODULES" = yes]) PY_STDLIB_MOD([_testimportmultiple], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])