Mercurial > mplayer.hg
comparison configure @ 18476:b642d1b8f332
Linkers, assisted by a compiler, can optimize out the string that is being
used to test for endianness. Prevent the linker from optimizing out the
string, as it is being returned.
patch by Derek E. Lewis, dlewis^#@^#solnetworks^#.^#net
author | diego |
---|---|
date | Sat, 13 May 2006 14:32:37 +0000 |
parents | 59e41f71a3fa |
children | c085c630b7f5 |
comparison
equal
deleted
inserted
replaced
18475:23fedcdd08a0 | 18476:b642d1b8f332 |
---|---|
6788 if test "$_big_endian" = auto ; then | 6788 if test "$_big_endian" = auto ; then |
6789 cat > $TMPC <<EOF | 6789 cat > $TMPC <<EOF |
6790 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), | 6790 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), |
6791 (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; | 6791 (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; |
6792 int main(){ | 6792 int main(){ |
6793 char* s = (char*)ascii_name; | 6793 return (int)ascii_name; |
6794 return 0; | |
6795 } | 6794 } |
6796 EOF | 6795 EOF |
6797 if cc_check ; then | 6796 if cc_check ; then |
6798 if strings $TMPO | grep -l MPlayerBigEndian >/dev/null ; then | 6797 if strings $TMPO | grep -l MPlayerBigEndian >/dev/null ; then |
6799 _big_endian=yes | 6798 _big_endian=yes |