aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-05 10:51:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-05 11:16:20 +0000
commit837c8b749b06457ba4a5a76a34ffe45d36bf4ef3 (patch)
tree2c6a285805a2ab600ef3d97d08918d7d74b99f1d /meta/classes
parenta7d45e6e0f141e3c000a550fb7f89fc4caa9056e (diff)
downloadopenembedded-core-contrib-837c8b749b06457ba4a5a76a34ffe45d36bf4ef3.tar.gz
nativesdk: Set PKG_CONFIG_SYSTEM_ variables
When building nativesdk recipes, we noticed paths going into .pc files which should have been suppressed since these were standard library search paths. pkgconfig-native sets these variables to sane values for native recipes, we need it set to values for our specific library paths in the nativesdk case. Setting these values cleans up the .pc files and suppresses the paths. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/nativesdk.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index f74da6267f..44154d99a7 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -60,6 +60,8 @@ sbindir = "${bindir}"
export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
+export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
+export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
python nativesdk_virtclass_handler () {
pn = e.data.getVar("PN", True)