From 839e04c295d96dca2c52ccc2a25e93a86a30b199 Mon Sep 17 00:00:00 2001 From: Jianchuan Wang Date: Wed, 30 Sep 2015 15:15:31 +0800 Subject: protobuf-c: Add protobuf's pkgconfig path into PKG_CONFIG_PATH 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 Signed-off-by: Bruce Ashfield --- recipes-containers/criu/protobuf-c_1.1.1.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'recipes-containers') diff --git a/recipes-containers/criu/protobuf-c_1.1.1.bb b/recipes-containers/criu/protobuf-c_1.1.1.bb index 8c2d2b73..2800f12e 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} } -- cgit v1.2.3-54-g00ecf