aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-10-16 07:14:18 -0700
committerKhem Raj <raj.khem@gmail.com>2021-10-18 09:55:55 -0700
commit8f640fb5da434dc26cffa05a4aae30219ffe9be0 (patch)
tree241502abb43e61d10c47b5b38b98bb77a3ad10f1
parente87f6f4fe04ac6d0ab61e8a0a216c4ddccb3fb7c (diff)
downloadmeta-openembedded-contrib-8f640fb5da434dc26cffa05a4aae30219ffe9be0.tar.gz
protobuf-c: Do not use gold linker
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 cc037d3934..b5ab0a171c 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"
inherit autotools pkgconfig
+LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
+
# After several fix attempts there is still a race between generating
# t.test-full.pb.h and compiling cxx_generate_packed_data.c despite
# BUILT_SOURCES and explicit dependencies.