From d7208aa0c63bf4492776335d4d6fce8ffb9327de Mon Sep 17 00:00:00 2001 From: Chris Meyer Date: Mon, 7 Nov 2011 13:15:14 -0800 Subject: Added '-' parameter to fix strings command using gcc-llvm on Mac OS 10.6 w/ Xcode 4.2. Change-Id: Ib44c17c92fd67e8ffe3f34fa9c6014d8f0d861a8 Reviewed-by: Harald Fernengel --- config.tests/unix/endian.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.tests') diff --git a/config.tests/unix/endian.test b/config.tests/unix/endian.test index d0fb6ce785..74a87327df 100755 --- a/config.tests/unix/endian.test +++ b/config.tests/unix/endian.test @@ -31,10 +31,10 @@ else exit 2 fi -if strings $binary | grep LeastSignificantByteFirst >/dev/null 2>&1; then +if strings - $binary | grep LeastSignificantByteFirst >/dev/null 2>&1; then [ "$VERBOSE" = "yes" ] && echo " Found 'LeastSignificantByteFirst' in binary" ENDIAN="LITTLE" -elif strings $binary | grep MostSignificantByteFirst >/dev/null 2>&1; then +elif strings - $binary | grep MostSignificantByteFirst >/dev/null 2>&1; then [ "$VERBOSE" = "yes" ] && echo " Found 'MostSignificantByteFirst' in binary" ENDIAN="BIG" fi -- cgit v1.2.3