configure: balk at any of {{,X}QMAKESPEC,QMAKE{PATH,FEATURES}} being set
these variables have no legitimate use when building qt itself, but have great potential to wreak havoc. Task-number: QTBUG-60016 Change-Id: I161837463443af82d48145e75952fa529212fe75 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
dfc2a4a537
commit
7967d8dadb
9
configure
vendored
9
configure
vendored
@ -73,6 +73,15 @@ if [ -z "$MAKE" ]; then
|
||||
export MAKE
|
||||
fi
|
||||
|
||||
# make sure qmake is not confused by these. recursion via Makefiles would
|
||||
# be still affected, so just unsetting them here is not an option.
|
||||
if [ -n "$QMAKESPEC" ] || [ -n "$XQMAKESPEC" ] || \
|
||||
[ -n "$QMAKEPATH" ] || [ -n "$QMAKEFEATURES" ]; then
|
||||
echo >&2 "Please make sure to unset the QMAKESPEC, XQMAKESPEC, QMAKEPATH,"
|
||||
echo >&2 "and QMAKEFEATURES environment variables prior to building Qt."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# do this early so we don't store it in config.status
|
||||
CFG_TOPLEVEL=
|
||||
relpathMangled=$relpath
|
||||
|
@ -34,6 +34,19 @@ set QTSRC=%~dp0
|
||||
set QTSRC=%QTSRC:~0,-1%
|
||||
set QTDIR=%CD%
|
||||
|
||||
rem Make sure qmake is not confused by these. Recursion via Makefiles would
|
||||
rem be still affected, so just unsetting them here is not an option.
|
||||
if not "%QMAKESPEC%" == "" goto envfail
|
||||
if not "%XQMAKESPEC%" == "" goto envfail
|
||||
if not "%QMAKEPATH%" == "" goto envfail
|
||||
if not "%QMAKEFEATURES%" == "" goto envfail
|
||||
goto envok
|
||||
:envfail
|
||||
echo >&2 Please make sure to unset the QMAKESPEC, XQMAKESPEC, QMAKEPATH,
|
||||
echo >&2 and QMAKEFEATURES environment variables prior to building Qt.
|
||||
exit /b 1
|
||||
:envok
|
||||
|
||||
rem Parse command line
|
||||
|
||||
set TOPLEVEL=false
|
||||
|
Loading…
Reference in New Issue
Block a user