Fix fvisibility.test for "QMAKE_CXX = ccache g++"

Testcase: adding this line at the end of mkspecs/linux-g++-64/qmake.conf
   QMAKE_CXX = ccache g++

Result:
  fvisibility.test: line 28: ccache g++: command not found
  Symbol visibility control disabled.

Result after fix:
  Symbol visibility control enabled.

Change-Id: I4049264a38a43e1bee3cb823d53836f0689f0b53
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
David Faure 2011-12-13 17:24:54 +01:00 committed by Qt by Nokia
parent 3992c1cb15
commit f1f500b9aa

View File

@ -25,9 +25,9 @@ __global void blah();
EOF
if [ "$VERBOSE" = "yes" ] ; then
"$COMPILER" -c $CMDLINE fvisibility.c && FVISIBILITY_SUPPORT=yes
$COMPILER -c $CMDLINE fvisibility.c && FVISIBILITY_SUPPORT=yes
else
"$COMPILER" -c $CMDLINE fvisibility.c >/dev/null 2>&1 && FVISIBILITY_SUPPORT=yes
$COMPILER -c $CMDLINE fvisibility.c >/dev/null 2>&1 && FVISIBILITY_SUPPORT=yes
fi
rm -f fvisibility.c fvisibility.o
}