diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-06 12:30:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-06 23:10:44 +0000 |
commit | ed5daa177baff265589bc50ea21a440693d4c478 (patch) | |
tree | 2585d04df2b9a96eea4e99402a17c68dca8703e3 | |
parent | 8fa2d52dfcd298f7814c4686314ebcba2247f487 (diff) | |
download | poky-ed5daa177baff265589bc50ea21a440693d4c478.tar.gz |
bitbake.conf/native/nativesdk: Set PKG_CONFIG_SYSTEM_ at top level
Setting PKG_CONFIG_SYSTEM_{HEADERS/INCLUDE}_PATH for nativesdk isn't
enough, we also need to deal with multlib cases where libdir from
pkg-config-native isn't correct. Native builds are about the only
case where this variable shouldn't be set.
Therefore move the code from nativesdk to bitbake.conf and unexport it
in the native case.
(From OE-Core rev: 46c48c26ab1916e2dfb841d74a0f2a58d8b2b870)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/native.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/nativesdk.bbclass | 2 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index a3a5c8c748..f67ef00142 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -106,6 +106,8 @@ PKG_CONFIG_DIR = "${libdir}/pkgconfig" | |||
106 | EXTRA_NATIVE_PKGCONFIG_PATH ?= "" | 106 | EXTRA_NATIVE_PKGCONFIG_PATH ?= "" |
107 | PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}" | 107 | PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}" |
108 | PKG_CONFIG_SYSROOT_DIR = "" | 108 | PKG_CONFIG_SYSROOT_DIR = "" |
109 | PKG_CONFIG_SYSTEM_LIBRARY_PATH[unexport] = "1" | ||
110 | PKG_CONFIG_SYSTEM_INCLUDE_PATH[unexport] = "1" | ||
109 | 111 | ||
110 | # we dont want libc-uclibc or libc-glibc to kick in for native recipes | 112 | # we dont want libc-uclibc or libc-glibc to kick in for native recipes |
111 | LIBCOVERRIDE = "" | 113 | LIBCOVERRIDE = "" |
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index 44154d99a7..f74da6267f 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass | |||
@@ -60,8 +60,6 @@ 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}" | ||
65 | 63 | ||
66 | python nativesdk_virtclass_handler () { | 64 | python nativesdk_virtclass_handler () { |
67 | pn = e.data.getVar("PN", True) | 65 | pn = e.data.getVar("PN", True) |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 775c0c6617..b307f387c0 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -647,6 +647,8 @@ export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" | |||
647 | export PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}" | 647 | export PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}" |
648 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" | 648 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" |
649 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" | 649 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" |
650 | export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}" | ||
651 | export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}" | ||
650 | 652 | ||
651 | ### | 653 | ### |
652 | ### Config file processing | 654 | ### Config file processing |