From bcf3b906fdf9380837d462e56aca0da1f2388f2c Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 12 Feb 2019 23:01:16 +0000 Subject: [PATCH] sys-devel/binutils: add USE=default-gold, bug #496760 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit binutils allows you to set ld=ld.bfd (default) and ld=ld.gold. Expose this override as USE=default-gold. Reported-by: Marcin Mirosław Bug: https://bugs.gentoo.org/496760 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich --- sys-devel/binutils/binutils-2.31.1-r3.ebuild | 8 ++++++-- sys-devel/binutils/binutils-9999.ebuild | 5 ++++- sys-devel/binutils/metadata.xml | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sys-devel/binutils/binutils-2.31.1-r3.ebuild b/sys-devel/binutils/binutils-2.31.1-r3.ebuild index 0ba64dc35a0a..ef47b02deafe 100644 --- a/sys-devel/binutils/binutils-2.31.1-r3.ebuild +++ b/sys-devel/binutils/binutils-2.31.1-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -8,7 +8,8 @@ inherit eutils libtool flag-o-matic gnuconfig multilib versionator DESCRIPTION="Tools necessary to build programs" HOMEPAGE="https://sourceware.org/binutils/" LICENSE="GPL-3+" -IUSE="+cxx doc multitarget +nls static-libs test" +IUSE="+cxx default-gold doc multitarget +nls static-libs test" +REQUIRED_USE="default-gold? ( cxx )" # Variables that can be set here: # PATCH_VER - the patchset version @@ -179,6 +180,9 @@ src_configure() { if use cxx ; then myconf+=( --enable-gold ) myconf+=( --enable-plugins ) + if use default-gold; then + myconf+=( --enable-gold=default ) + fi fi if use nls ; then diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild index 5e72d97d1403..4e2bb0f4ec75 100644 --- a/sys-devel/binutils/binutils-9999.ebuild +++ b/sys-devel/binutils/binutils-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -178,6 +178,9 @@ src_configure() { if use cxx ; then myconf+=( --enable-gold ) myconf+=( --enable-plugins ) + if use default-gold; then + myconf+=( --enable-gold=default ) + fi fi if use nls ; then diff --git a/sys-devel/binutils/metadata.xml b/sys-devel/binutils/metadata.xml index cd119b3491c3..98c985e11c4a 100644 --- a/sys-devel/binutils/metadata.xml +++ b/sys-devel/binutils/metadata.xml @@ -6,6 +6,7 @@ Gentoo Toolchain Project + Set ld to point to ld.gold instead of ld.bfd Adds support to binutils for cross compiling (does not work with gas) -- 2.26.2