summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-06-28 16:14:13 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-06-28 18:23:42 +0000
commitd0e4f28dea97252cf2e2ca317d5344e1c7a1cdfe (patch)
tree928adfeb1339df2a14f1f441bc9fd0a666afbfa4
parent16203353d0ada1737356cba10fa51f8f67f80a97 (diff)
pass pkg-config environment to qmake invocations
qmake tries to use pkg-config when the config.test contains PKG_CONFIG, which will of course fail without the sysrooted env vars. and unlike in the old configure, these don't become automatically available by virtue of the script simply exporting them. longer-term, the test programs shouldn't mention pkg-config deps explicitly, as these are redundant with what is specified in the JSON file. relevant changes are already pending. Task-number: QTBUG-54403 Change-Id: Ie9d3bbb2e4febffde5fd122d7d0a8b70b8679fcc Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r--mkspecs/features/qt_configure.prf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index e67d3b93b1..7a1e588994 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -411,7 +411,7 @@ defineTest(qtConfTest_compile) {
# add possible command line args
qmake_configs += $$qtConfPrepareArgs($$eval($${1}.args))
- qtRunLoggedCommand("$$test_cmd_base $$system_quote($$system_path($$QMAKE_QMAKE)) $$qtconfarg $$qmake_configs $$shell_quote($$test_dir)") {
+ qtRunLoggedCommand("$$test_cmd_base $$qtConfPkgConfigEnv()$$system_quote($$system_path($$QMAKE_QMAKE)) $$qtconfarg $$qmake_configs $$shell_quote($$test_dir)") {
qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE"): \
return(true)
}