Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 497714 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure (-3 / +3 lines)
Lines 758-767 Link Here
758
# skip endianness check for Intel Compiler, as all supported platforms are little. the -ipo flag will also cause the check to fail
758
# skip endianness check for Intel Compiler, as all supported platforms are little. the -ipo flag will also cause the check to fail
759
if [ $compiler = GNU ]; then
759
if [ $compiler = GNU ]; then
760
    echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c
760
    echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c
761
    $CC $CFLAGS conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed"
761
    $CC $CFLAGS conftest.c -o conftest -shared 2>/dev/null || die "endian test failed"
762
    if (${cross_prefix}strings -a conftest.o | grep -q BIGE) && (${cross_prefix}strings -a conftest.o | grep -q FPendian) ; then
762
    if (${cross_prefix}strings -a conftest | grep -q BIGE) && (${cross_prefix}strings -a conftest | grep -q FPendian) ; then
763
        define WORDS_BIGENDIAN
763
        define WORDS_BIGENDIAN
764
    elif !(${cross_prefix}strings -a conftest.o | grep -q EGIB && ${cross_prefix}strings -a conftest.o | grep -q naidnePF) ; then
764
    elif !(${cross_prefix}strings -a conftest | grep -q EGIB && ${cross_prefix}strings -a conftest | grep -q naidnePF) ; then
765
        die "endian test failed"
765
        die "endian test failed"
766
    fi
766
    fi
767
fi
767
fi

Return to bug 497714