From 8f640fb5da434dc26cffa05a4aae30219ffe9be0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 16 Oct 2021 07:14:18 -0700 Subject: protobuf-c: Do not use gold linker Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit 1.2.3-korg