summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorA-Team <ateam@pad.test.qt.nokia.com>2010-12-18 23:00:12 (GMT)
committerA-Team <ateam@pad.test.qt.nokia.com>2010-12-18 23:00:12 (GMT)
commitea05d5ecd7ead66d22a8e319e8fdc40206b8b679 (patch)
treed5d34edec17f9fea847f5e83be84b53cc63db68d /tools
parent12bd296466225321e753f1fda3efb8dda06b2c21 (diff)
parentf6fd0ec480170713044d39d6ee0ebcf0a6435042 (diff)
downloadQt-ea05d5ecd7ead66d22a8e319e8fdc40206b8b679.zip
Qt-ea05d5ecd7ead66d22a8e319e8fdc40206b8b679.tar.gz
Qt-ea05d5ecd7ead66d22a8e319e8fdc40206b8b679.tar.bz2
Merge branch '4.7-upstream' into 4.7-doc
Diffstat (limited to 'tools')
-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();
}