Patchwork [meta-oe,07/16] gpsd: export PKG_CONFIG with PKG_CONFIG_SYSROOT_DIR

login
register
mail settings
Submitter Martin Jansa
Date April 30, 2012, 6:33 a.m.
Message ID <112193fcdfa67a581b5a218a2c766d507f972746.1335767139.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/26613/
State Accepted
Commit 112193fcdfa67a581b5a218a2c766d507f972746
Headers show

Comments

Martin Jansa - April 30, 2012, 6:33 a.m.
* python-scons-native executes pkg-config with wrong environment and as result -I/usr/include/libusb-1.0 is returned

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb
index 7502f9a..37fb79d 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb
@@ -41,6 +41,7 @@  EXTRA_OESCONS = " \
 
 do_compile_prepend() {
     export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
+    export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
     export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
 
     export BUILD_SYS="${BUILD_SYS}"
@@ -49,6 +50,7 @@  do_compile_prepend() {
 
 do_install_prepend() {
     export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
+    export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
     export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
 
     export BUILD_SYS="${BUILD_SYS}"