[meta-virtualization] [PATCH] protobuf-c: Add protobuf's pkgconfig path into PKG_CONFIG_PATH
jianchuan.wang at windriver.com
jianchuan.wang at windriver.com
Wed Sep 30 00:15:31 PDT 2015
From: Jianchuan Wang <jianchuan.wang at windriver.com>
Add the protobuf's pkgconfig path into PKG_CONFIG_PATH
so that pkg-config can find the protoc from sysroot in the configure process.
And don't conflict even if installing the protobuf in the localhost.
Signed-off-by: Jianchuan Wang <jianchuan.wang at windriver.com>
---
recipes-containers/criu/protobuf-c_1.1.1.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/recipes-containers/criu/protobuf-c_1.1.1.bb b/recipes-containers/criu/protobuf-c_1.1.1.bb
index 8c2d2b7..2800f12 100644
--- a/recipes-containers/criu/protobuf-c_1.1.1.bb
+++ b/recipes-containers/criu/protobuf-c_1.1.1.bb
@@ -19,6 +19,10 @@ inherit autotools
BBCLASSEXTEND = "native nativesdk"
+do_configure_prepend_class-target() {
+ export PKG_CONFIG_PATH="${STAGING_LIBDIR_NATIVE}/pkgconfig:${PKG_CONFIG_PATH}"
+}
+
do_install_append_class-native() {
install -m 755 ${B}/t/generated-code2/cxx-generate-packed-data ${D}/${bindir}
}
--
1.9.1
More information about the meta-virtualization
mailing list