commit:     4be8cdbce708604f34fd8d9018198027e353a011
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Fri May 17 15:14:37 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri May 17 19:33:25 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be8cdbc

dev-libs/protobuf: Force linker BFD when linker GOLD is detected.

Fixes: https://bugs.gentoo.org/683892
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-libs/protobuf/protobuf-3.7.1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-libs/protobuf/protobuf-3.7.1.ebuild 
b/dev-libs/protobuf/protobuf-3.7.1.ebuild
index f28a36c024b..a7ca525e9d8 100644
--- a/dev-libs/protobuf/protobuf-3.7.1.ebuild
+++ b/dev-libs/protobuf/protobuf-3.7.1.ebuild
@@ -47,6 +47,12 @@ src_prepare() {
 
 src_configure() {
        append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
+
+       if tc-ld-is-gold; then
+               # https://sourceware.org/bugzilla/show_bug.cgi?id=24527
+               tc-ld-disable-gold
+       fi
+
        multilib-minimal_src_configure
 }
 

Reply via email to