summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-11-09 21:43:08 -0800
committerKhem Raj <raj.khem@gmail.com>2021-11-09 21:48:00 -0800
commitbf1e71cea9932bd03d2d15ebd6bfdd6af50c4a16 (patch)
treeef8f26cf8a25e0fdc9f7845add5e8120d1ed2e35
parent32083888af004cf5e5e9a3c7b474d3b7489b932d (diff)
downloadmeta-openembedded-bf1e71cea9932bd03d2d15ebd6bfdd6af50c4a16.tar.gz
protobuf-c: Export native protoc
configure detects protoc based on some pkgconfig logic which confuses cross compilation and ends up choosing /usr/bin/protoc causing build failures when host system has version mismatched protoc installed, it works ok as long as compatible protoc is installed Fixes ./protobuf-c/protobuf-c.pb.h:17:2: error: This file was generated by an older version of protoc which is ^ Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb
index 3932805248..b3423ba84d 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb
@@ -19,6 +19,8 @@ S = "${WORKDIR}/git"
19 19
20inherit autotools pkgconfig 20inherit autotools pkgconfig
21 21
22export PROTOC = "${STAGING_BINDIR_NATIVE}/protoc"
23
22# After several fix attempts there is still a race between generating 24# After several fix attempts there is still a race between generating
23# t.test-full.pb.h and compiling cxx_generate_packed_data.c despite 25# t.test-full.pb.h and compiling cxx_generate_packed_data.c despite
24# BUILT_SOURCES and explicit dependencies. 26# BUILT_SOURCES and explicit dependencies.