From 6bc7fe4f36ea95db77e6df6d76153dd5a2c770a0 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Sun, 29 Nov 2020 14:38:07 +0100 Subject: [PATCH] configure: Fix endianness test when LTO is enabled through CFLAGS --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 10aa2fd4..e41664cd 100755 --- a/configure +++ b/configure @@ -1031,7 +1031,7 @@ ASFLAGS="$ASFLAGS -DSTACK_ALIGNMENT=$stack_alignment" CPU_ENDIAN="little-endian" if [ $compiler = GNU ]; then echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c - $CC $CFLAGS conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed" + $CC $CFLAGS -fno-lto conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed" if (${STRINGS} -a conftest.o | grep -q BIGE) && (${STRINGS} -a conftest.o | grep -q FPendian) ; then define WORDS_BIGENDIAN CPU_ENDIAN="big-endian" -- 2.40.0