Lines 995-1001
Link Here
|
995 |
CPU_ENDIAN="little-endian" |
995 |
CPU_ENDIAN="little-endian" |
996 |
if [ $compiler = GNU ]; then |
996 |
if [ $compiler = GNU ]; then |
997 |
echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c |
997 |
echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c |
998 |
$CC $CFLAGS conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed" |
998 |
$CC $CFLAGS -fno-lto conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed" |
999 |
if (${STRINGS} -a conftest.o | grep -q BIGE) && (${STRINGS} -a conftest.o | grep -q FPendian) ; then |
999 |
if (${STRINGS} -a conftest.o | grep -q BIGE) && (${STRINGS} -a conftest.o | grep -q FPendian) ; then |
1000 |
define WORDS_BIGENDIAN |
1000 |
define WORDS_BIGENDIAN |
1001 |
CPU_ENDIAN="big-endian" |
1001 |
CPU_ENDIAN="big-endian" |