gpsd: export PKG_CONFIG with PKG_CONFIG_SYSROOT_DIR
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 24 Apr 2012 13:13:40 +0000 (15:13 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:20:28 +0000 (08:20 -0800)
* python-scons-native executes pkg-config with wrong environment and as result -I/usr/include/libusb-1.0 is returned

(From meta-openembedded rev: 112193fcdfa67a581b5a218a2c766d507f972746)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb

index 7502f9a..37fb79d 100644 (file)
@@ -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}"