summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-12-13 09:34:24 +0100
committerFabian Groffen <grobian@gentoo.org>2018-12-13 09:34:59 +0100
commitbc7b7d6779a07e0ae6a837fd4d6c871f8bd4b594 (patch)
tree77adfcefffde2d59ec384ad1e9c776893d157f15 /sys-devel/binutils-apple
parentdev-ruby/barby: add ruby25 (diff)
downloadgentoo-bc7b7d6779a07e0ae6a837fd4d6c871f8bd4b594.tar.gz
gentoo-bc7b7d6779a07e0ae6a837fd4d6c871f8bd4b594.tar.bz2
gentoo-bc7b7d6779a07e0ae6a837fd4d6c871f8bd4b594.zip
sys-devel/binutils-apple: force gcc-apple usage if necessary
Signed-off-by: Fabian Groffen <grobian@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'sys-devel/binutils-apple')
-rw-r--r--sys-devel/binutils-apple/binutils-apple-3.2.ebuild8
1 files changed, 7 insertions, 1 deletions
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() {