aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-03-03 11:25:35 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2016-03-03 10:41:43 +0000
commitc78af4b6dfcc11af1ca54227bb3e32cf46a3d013 (patch)
tree34c5caef2c4d91a0311f3a111daeef7bd807c391 /share
parent8b2decf0b9bd2c53b742db148802b4e08bfa73ba (diff)
Make PkgConfigProbe sysroot-aware.
Change-Id: Ia9e4d8cbe600414fa5d31d3ed03fda971cd9a1a3 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
Diffstat (limited to 'share')
-rw-r--r--share/qbs/imports/qbs/Probes/PkgConfigProbe.qbs2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qbs/imports/qbs/Probes/PkgConfigProbe.qbs b/share/qbs/imports/qbs/Probes/PkgConfigProbe.qbs
index 92062c2d7..43453638a 100644
--- a/share/qbs/imports/qbs/Probes/PkgConfigProbe.qbs
+++ b/share/qbs/imports/qbs/Probes/PkgConfigProbe.qbs
@@ -56,6 +56,8 @@ Probe {
args.push(name + ' = ' + exactVersion);
if (maxVersion !== undefined)
args.push(name + ' <= ' + maxVersion);
+ if (qbs.sysroot)
+ p.setEnv("PKG_CONFIG_SYSROOT_DIR", qbs.sysroot);
if (p.exec(executable, args.concat([ '--cflags' ])) === 0) {
cflags = p.readStdOut().trim();
if (cflags === "")