diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-05 10:51:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-05 11:16:41 +0000 |
commit | 66a6ec2e9aae9c182c55a7a8cf0cd20f2f16e654 (patch) | |
tree | bc967ff3c35518901d61645cd0d6fb34cc7d9d64 /meta/classes | |
parent | 34e95b0349043030b430a8fa22ffd15aae17017c (diff) | |
download | poky-66a6ec2e9aae9c182c55a7a8cf0cd20f2f16e654.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.
(From OE-Core rev: 837c8b749b06457ba4a5a76a34ffe45d36bf4ef3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/nativesdk.bbclass | 2 |
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}" | |||
60 | 60 | ||
61 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig" | 61 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig" |
62 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" | 62 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" |
63 | export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}" | ||
64 | export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}" | ||
63 | 65 | ||
64 | python nativesdk_virtclass_handler () { | 66 | python nativesdk_virtclass_handler () { |
65 | pn = e.data.getVar("PN", True) | 67 | pn = e.data.getVar("PN", True) |