]> code.ossystems Code Review - openembedded-core.git/commitdiff
nativesdk: Set PKG_CONFIG_SYSTEM_ variables
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Feb 2016 10:51:32 +0000 (10:51 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Feb 2016 11:16:20 +0000 (11:16 +0000)
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>
meta/classes/nativesdk.bbclass

index f74da6267f1adbaea71d6d245643f20bac3011d6..44154d99a75996983056339fa13199f2e51852aa 100644 (file)
@@ -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)