summaryrefslogtreecommitdiffstats
path: root/tools/configure/configureapp.cpp
diff options
context:
space:
mode:
authorRoland Wolf <ext-roland.wolf@nokia.com>2010-09-06 09:59:32 (GMT)
committerRoland Wolf <ext-roland.wolf@nokia.com>2010-09-06 09:59:32 (GMT)
commit03b787cdadb966898c86a06747deb39e2f7dae2f (patch)
tree188d10557683fb95defc966829ff3d14bc404e37 /tools/configure/configureapp.cpp
parent5180a674358d5b295e5f7e01f28649176ec0d33a (diff)
parentfded09d4e2983d7eed82c9fa5b678f70074473ba (diff)
downloadQt-03b787cdadb966898c86a06747deb39e2f7dae2f.zip
Qt-03b787cdadb966898c86a06747deb39e2f7dae2f.tar.gz
Qt-03b787cdadb966898c86a06747deb39e2f7dae2f.tar.bz2
Merge remote branch 'upstream/4.7' into 4.7
Diffstat (limited to 'tools/configure/configureapp.cpp')
-rw-r--r--tools/configure/configureapp.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index e1d7275..09da581 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -3612,7 +3612,10 @@ void Configure::buildHostTools()
// generate Makefile
QStringList args;
args << QDir::toNativeSeparators(buildPath + "/bin/qmake");
- args << "-spec" << dictionary["QMAKESPEC"] << "-r";
+ // override .qmake.cache because we are not cross-building these.
+ // we need a full path so that a build with -prefix will still find it.
+ args << "-spec" << QDir::toNativeSeparators(buildPath + "/mkspecs/" + dictionary["QMAKESPEC"]);
+ args << "-r";
args << "-o" << QDir::toNativeSeparators(toolBuildPath + "/Makefile");
QDir().mkpath(toolBuildPath);
@@ -3750,8 +3753,7 @@ void Configure::generateMakefiles()
printf("Generating Makefiles...\n");
generate = false; // Now Makefiles will be done
}
- args << "-spec";
- args << spec;
+ // don't pass -spec - .qmake.cache has it already
args << "-r";
args << (sourcePath + "/projects.pro");
args << "-o";