summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/avro/avro-c++_1.12.bb12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/avro/avro-c++_1.12.bb b/meta-oe/recipes-support/avro/avro-c++_1.12.bb
index 726a861bc9..61aef88e13 100644
--- a/meta-oe/recipes-support/avro/avro-c++_1.12.bb
+++ b/meta-oe/recipes-support/avro/avro-c++_1.12.bb
@@ -26,4 +26,16 @@ do_configure:prepend() {
26 cp -r ${UNPACKDIR}/_deps/fmt-src ${B}/_deps/ 26 cp -r ${UNPACKDIR}/_deps/fmt-src ${B}/_deps/
27} 27}
28 28
29# Workaround for 32-bit build failures due to -Werror:
30# 'useless-cast' in Symbol.cc and 'conversion' in FileStream.cc
31#
32# A patch has been submitted upstream: https://github.com/apache/avro/pull/3433
33# Once this or an equivalent fix is merged and the recipe upgraded, this can be removed.
34#
35# These errors don't occur when using Clang accordingly to upstream configuration and
36# the workaround flags aren't recognized by Clang either.
37# To avoid unnecessary warnings and keep the build clean across toolchains, the flags are conditionally added
38# using the toolchain-gcc override. This makes it unnecessary to override anything for Clang.
39CXXFLAGS:append:toolchain-gcc = " -Wno-error=useless-cast -Wno-error=conversion"
40
29BBCLASSEXTEND = "native nativesdk" 41BBCLASSEXTEND = "native nativesdk"