--- a/configure 2014-07-02 09:59:09.000000000 +0200 +++ b/configure 2014-07-02 10:33:44.969718423 +0200 @@ -758,10 +758,10 @@ # skip endianness check for Intel Compiler, as all supported platforms are little. the -ipo flag will also cause the check to fail 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 (${cross_prefix}strings -a conftest.o | grep -q BIGE) && (${cross_prefix}strings -a conftest.o | grep -q FPendian) ; then + $CC $CFLAGS conftest.c -o conftest -shared 2>/dev/null || die "endian test failed" + if (${cross_prefix}strings -a conftest | grep -q BIGE) && (${cross_prefix}strings -a conftest | grep -q FPendian) ; then define WORDS_BIGENDIAN - elif !(${cross_prefix}strings -a conftest.o | grep -q EGIB && ${cross_prefix}strings -a conftest.o | grep -q naidnePF) ; then + elif !(${cross_prefix}strings -a conftest | grep -q EGIB && ${cross_prefix}strings -a conftest | grep -q naidnePF) ; then die "endian test failed" fi fi