From bc7b7d6779a07e0ae6a837fd4d6c871f8bd4b594 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 13 Dec 2018 09:34:24 +0100 Subject: sys-devel/binutils-apple: force gcc-apple usage if necessary Signed-off-by: Fabian Groffen Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- sys-devel/binutils-apple/binutils-apple-3.2.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys-devel/binutils-apple') diff --git a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild index 9469e8bf164b..55a843d9c6c7 100644 --- a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -121,6 +121,12 @@ src_configure() { else BINPATH=/usr/${CTARGET}/binutils-bin/${PV} fi + + if tc-is-gcc && [[ $(gcc-fullversion) != 4.2.1 ]] ; then + # force gcc-apple + CC=${CTARGET}-gcc-4.2.1 + CXX=${CTARGET}-g++-4.2.1 + fi } compile_ld64() { -- cgit v1.2.3-65-gdbad