From: Henrik Gramner Date: Sun, 29 Nov 2020 13:38:07 +0000 (+0100) Subject: configure: Fix endianness test when LTO is enabled through CFLAGS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bc7fe4f36ea95db77e6df6d76153dd5a2c770a0;p=libx264 configure: Fix endianness test when LTO is enabled through CFLAGS --- 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"