summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2013-06-21 14:40:32 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-25 12:08:38 +0200
commit1b972b210ae1611b2ee07e1c3f545963c7cc31e7 (patch)
tree1198fac03ab1dc9fac8c40001728513f0300c787 /config.tests
parent6811920dea2e864dc2b7231c18c8b72af5cab7f5 (diff)
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 <oswald.buddenhagen@digia.com>
Diffstat (limited to 'config.tests')
-rwxr-xr-xconfig.tests/unix/arch.test4
1 files changed, 2 insertions, 2 deletions
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"