summaryrefslogtreecommitdiffstats
path: root/tools/configure/configureapp.cpp
diff options
context:
space:
mode:
authorVille Pernu <ville.pernu@nokia.com>2010-12-20 08:02:31 (GMT)
committerVille Pernu <ville.pernu@nokia.com>2010-12-20 08:02:31 (GMT)
commit66cfcc49d0101a93a46253cc696387c8a01a78b2 (patch)
treeff4f2a77a3a001fd5f3413735a10ea9ee78cc991 /tools/configure/configureapp.cpp
parentde72670c620e1193fa875bf1a4adee553700bacb (diff)
parent28973e50710cfcd96da037cdad7f46700221c185 (diff)
downloadQt-66cfcc49d0101a93a46253cc696387c8a01a78b2.zip
Qt-66cfcc49d0101a93a46253cc696387c8a01a78b2.tar.gz
Qt-66cfcc49d0101a93a46253cc696387c8a01a78b2.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'tools/configure/configureapp.cpp')
-rw-r--r--tools/configure/configureapp.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index c967dad..915a56d 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -3267,8 +3267,14 @@ void Configure::generateConfigfiles()
if (qmakeConfFile.open(QFile::WriteOnly | QFile::Text)) {
QTextStream qmakeConfStream;
qmakeConfStream.setDevice(&qmakeConfFile);
+ // While QMAKESPEC_ORIGINAL being relative or absolute doesn't matter for the
+ // primary use of this variable by qmake to identify the original mkspec, the
+ // variable is also used for few special cases where the absolute path is required.
+ // Conversely, the include of the original qmake.conf must be done using relative path,
+ // as some Qt binary deployments are done in a manner that doesn't allow for patching
+ // the paths at the installation time.
qmakeConfStream << "QMAKESPEC_ORIGINAL=" << pltSpec << endl << endl;
- qmakeConfStream << "include(" << pltSpec << "/qmake.conf)" << endl;
+ qmakeConfStream << "include(" << "../" << spec << "/qmake.conf)" << endl << endl;
qmakeConfStream.flush();
qmakeConfFile.close();
}