diff options
Diffstat (limited to 'tools/configure/configureapp.cpp')
-rw-r--r-- | tools/configure/configureapp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 38171f5eb4..a192f8aa75 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -2940,10 +2940,9 @@ void Configure::generateQConfigPri() << "QT_PATCH_VERSION = " << dictionary["VERSION_PATCH"] << endl; if (!dictionary["CFG_SYSROOT"].isEmpty()) { - QString targetSpec = dictionary.contains("XQMAKESPEC") ? dictionary[ "XQMAKESPEC" ] : dictionary[ "QMAKESPEC" ]; configStream << endl << "# sysroot" << endl - << targetSpec << " {" << endl + << "!host_build {" << endl << " QMAKE_CFLAGS += --sysroot=$$[QT_SYSROOT]" << endl << " QMAKE_CXXFLAGS += --sysroot=$$[QT_SYSROOT]" << endl << " QMAKE_LFLAGS += --sysroot=$$[QT_SYSROOT]" << endl |