Index: build/linux/system.gyp |
diff --git a/build/linux/system.gyp b/build/linux/system.gyp |
index a1d6bf0a1bcdca2f442d016b102fd5b6adb6e835..476476ecdfab45c5cf7c0866a1a0029225e4b427 100644 |
--- a/build/linux/system.gyp |
+++ b/build/linux/system.gyp |
@@ -4,6 +4,14 @@ |
{ |
'variables': { |
+ 'conditions': [ |
+ ['sysroot!=""', { |
+ 'pkg-config': '<(chroot_cmd) ./pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"', |
+ }, { |
+ 'pkg-config': 'pkg-config', |
+ }], |
+ ], |
+ |
# If any of the linux_link_FOO below are set to 1, then the corresponding |
# target will be linked against the FOO library (either dynamically or |
# statically, depending on the pkg-config files), as opposed to loading the |