[x264-devel] [Git][videolan/x264][master] configure: Fix endianness test when LTO is enabled through CFLAGS

Anton Mitrofanov gitlab at videolan.org
Thu Jan 7 13:47:39 UTC 2021



Anton Mitrofanov pushed to branch master at VideoLAN / x264


Commits:
6bc7fe4f by Henrik Gramner at 2021-01-07T14:25:43+01:00
configure: Fix endianness test when LTO is enabled through CFLAGS

- - - - -


1 changed file:

- configure


Changes:

=====================================
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"



View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/6bc7fe4f36ea95db77e6df6d76153dd5a2c770a0

-- 
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/6bc7fe4f36ea95db77e6df6d76153dd5a2c770a0
You're receiving this email because of your account on code.videolan.org.




More information about the x264-devel mailing list