make configure ignore $CC and $CXX
this was inconsistent with how qmake itself works, and was actually wreaking havoc. Change-Id: I5aa83cc88ffe7141cc0c31b03b76c48274f1ebdb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
parent
2e4d8f67a8
commit
87fcbd82fc
13
configure
vendored
13
configure
vendored
@ -3056,9 +3056,8 @@ else
|
||||
fi
|
||||
|
||||
QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1`
|
||||
TEST_COMPILER="$CXX"
|
||||
|
||||
[ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER
|
||||
TEST_COMPILER=$QMAKE_CONF_COMPILER
|
||||
if [ "$XPLATFORM_SYMBIAN_SBSV2" = "no" ]; then
|
||||
if [ -z "$TEST_COMPILER" ]; then
|
||||
echo "ERROR: Cannot set the compiler for the configuration tests"
|
||||
@ -4472,14 +4471,12 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
|
||||
EXTRA_LFLAGS="$EXTRA_LFLAGS -lm"
|
||||
fi
|
||||
|
||||
[ -n "$CC" ] && echo "CC = $CC" >> "$mkfile"
|
||||
[ -n "$CXX" ] && echo "CXX = $CXX" >> "$mkfile"
|
||||
if [ "$CFG_SILENT" = "yes" ]; then
|
||||
[ -z "$CC" ] && setBootstrapVariable QMAKE_CC 's,QMAKE_CC.*=,CC=\@,'
|
||||
[ -z "$CXX" ] && setBootstrapVariable QMAKE_CXX 's,QMAKE_CXX.*=,CXX=\@,'
|
||||
setBootstrapVariable QMAKE_CC 's,QMAKE_CC.*=,CC=\@,'
|
||||
setBootstrapVariable QMAKE_CXX 's,QMAKE_CXX.*=,CXX=\@,'
|
||||
else
|
||||
[ -z "$CC" ] && setBootstrapVariable QMAKE_CC 's,QMAKE_CC,CC,'
|
||||
[ -z "$CXX" ] && setBootstrapVariable QMAKE_CXX 's,QMAKE_CXX,CXX,'
|
||||
setBootstrapVariable QMAKE_CC 's,QMAKE_CC,CC,'
|
||||
setBootstrapVariable QMAKE_CXX 's,QMAKE_CXX,CXX,'
|
||||
fi
|
||||
setBootstrapVariable QMAKE_CFLAGS
|
||||
setBootstrapVariable QMAKE_CXXFLAGS 's,\$\$QMAKE_CFLAGS,\$(QMAKE_CFLAGS),'
|
||||
|
Loading…
Reference in New Issue
Block a user