diff configure @ 35078:d698d80bb438

Pass input to "strings" via stdin. That disables any "clever" parsing that will fail if strings was not updated to support that particular binary format. This can easily happen when cross-compiling, but obviously strings on OSX 10.6 was never update to handle the latest (64 bit) binary format either and would previously just fail (the obvious way of falling back to the generic algorithm in that case would have been too user-friendly I guess...)
author reimar
date Wed, 12 Sep 2012 22:01:36 +0000
parents 7a91c386ad95
children 8287c476bf53
line wrap: on
line diff
--- a/configure	Wed Sep 12 21:03:45 2012 +0000
+++ b/configure	Wed Sep 12 22:01:36 2012 +0000
@@ -2540,7 +2540,9 @@
 int main(void) { return (long)ascii_name; }
 EOF
   if cc_check ; then
-    if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then
+    # stdin is used to make "strings" not try something clever like
+    # parse executable section headers (and possibly fail in the process)
+    if strings < $TMPEXE | grep -q -l MPlayerBigEndian ; then
       _big_endian=yes
     else
       _big_endian=no