From 1b972b210ae1611b2ee07e1c3f545963c7cc31e7 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Fri, 21 Jun 2013 14:40:32 +0200 Subject: config.tests: Fix architecture detection on Solaris Escaping the '=' signs, otherwise awk fails on Solaris with awk: syntax error near line 1 awk: bailing out near line 1 Could not determine the target architecture! Build type: solaris-g++ (unknown, CPU features:) Change-Id: I201482395c0cec28c10853191032eaa0401f5beb Reviewed-by: Oswald Buddenhagen --- config.tests/unix/arch.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.tests') diff --git a/config.tests/unix/arch.test b/config.tests/unix/arch.test index e65541cda7..3efd6f4f25 100755 --- a/config.tests/unix/arch.test +++ b/config.tests/unix/arch.test @@ -44,8 +44,8 @@ else fi if strings - $binary 2>/dev/null | \ - awk -F: '/==Qt=magic=Qt== Architecture/ { print "'$VARPREFIX'_ARCH=\"" $2 "\"" } - /==Qt=magic=Qt== Sub-architecture/ { print "'$VARPREFIX'_CPUFEATURES=\"" $2 "\"" }' > "$RESULTFILE" + awk -F: '/\=\=Qt\=magic\=Qt\=\= Architecture/ { print "'$VARPREFIX'_ARCH=\"" $2 "\"" } + /\=\=Qt\=magic\=Qt\=\= Sub-architecture/ { print "'$VARPREFIX'_CPUFEATURES=\"" $2 "\"" }' > "$RESULTFILE" then [ "$VERBOSE" = "yes" ] && echo " Found architecture in binary" && \ cat "$RESULTFILE" -- cgit v1.2.3