From 7b1dd8ce10e6bef043088896136105b8aabbb882 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Wed, 31 Aug 2022 09:49:21 -0400 Subject: Don't -malign-double for x86-32 --- m4/ax_cc_maxopt.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/m4/ax_cc_maxopt.m4 b/m4/ax_cc_maxopt.m4 index 58e267b..2f447af 100644 --- a/m4/ax_cc_maxopt.m4 +++ b/m4/ax_cc_maxopt.m4 @@ -153,7 +153,9 @@ if test "x$ac_test_CFLAGS" = "x"; then CFLAGS="$CFLAGS -O3 -fomit-frame-pointer" # -malign-double for x86 systems - AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double") + # LIBFFI_LOCAL: don't do this. + # The testsuite doesn't use these flags and we'll get test failures. + # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double") # -fstrict-aliasing for gcc-2.95+ AX_CHECK_COMPILE_FLAG(-fstrict-aliasing, -- cgit v1.2.1