The ld.gold test suite has problems with --enable-default-pie.
This is known upstream, but there's no activity on the bug, so
let's temporarily disable testing only for ld.gold.
The rest of the test suite (gas, ld, ...) works fine.
Bug: https://bugs.gentoo.org/634348
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21090
Package-Manager: Portage-2.3.13, Repoman-2.3.4
inherit toolchain-binutils
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd -sparc-fbsd ~x86-fbsd"
+
+PATCHES=( "${FILESDIR}/${P}-nogoldtest.patch" )
--- /dev/null
+From 40f6e93e5078f16897f23856886566fe3b546206 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@gentoo.org>
+Date: Fri, 3 Nov 2017 21:51:35 +0100
+Subject: [PATCH] Gentoo: Disable gold testsuite for users since it fails
+ upstream
+
+https://bugs.gentoo.org/634348
+https://sourceware.org/bugzilla/show_bug.cgi?id=21090
+---
+ Makefile.in | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 3acb83b8de..49de829bfa 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -2340,7 +2340,6 @@ check-host: \
+ maybe-check-mpc \
+ maybe-check-isl \
+ maybe-check-libelf \
+- maybe-check-gold \
+ maybe-check-gprof \
+ maybe-check-intl \
+ maybe-check-tcl \
+--
+2.15.0
+