commit:     bc7b7d6779a07e0ae6a837fd4d6c871f8bd4b594
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 13 08:34:24 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Dec 13 08:34:59 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc7b7d67

sys-devel/binutils-apple: force gcc-apple usage if necessary

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
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(-)

diff --git a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild 
b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild
index 9469e8bf164..55a843d9c6c 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() {

Reply via email to