diff options
author | Anthony Green <green@moxielogic.com> | 2022-08-31 09:49:21 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2022-08-31 09:49:21 -0400 |
commit | 7b1dd8ce10e6bef043088896136105b8aabbb882 (patch) | |
tree | 5340b16a77c1518c69f8f0a02b045de174ba409e | |
parent | 41d0851fc545ff1ffd8377236d193268c8a10740 (diff) | |
download | libffi-7b1dd8ce10e6bef043088896136105b8aabbb882.tar.gz |
Don't -malign-double for x86-32
-rw-r--r-- | m4/ax_cc_maxopt.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
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, |