Endian test fails on X86_64 Linux Ubuntu 20.10
Editing configure to skip the test allows for compiling X264 allows me to compile.
This is on an Intel Haswell based laptop. (I7 4700M) that is Little endian.
I commented this code out in configure to be able to compile on my system:
# skip endianness check for Intel Compiler and MSVS, as all supported platforms are little. each have flags that will cause the check to fail as well
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"
# if (${STRINGS} -a conftest.o | grep -q BIGE) && (${STRINGS} -a conftest.o | grep -q FPendian) ; then
# define WORDS_BIGENDIAN
# CPU_ENDIAN="big-endian"
# elif !(${STRINGS} -a conftest.o | grep -q EGIB && ${STRINGS} -a conftest.o | grep -q naidnePF) ; then
# die "endian test failed"
# fi
#fi
Edited by Ferdi Scholten