commit: 7039cef85032e6e9f65585a879aa6196f50d3b1b
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 9 14:09:17 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jan 9 14:09:32 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7039cef8
sys-devel/gdb-apple: force compilation with gcc-apple when not clang
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
sys-devel/gdb-apple/gdb-apple-1752.ebuild | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/sys-devel/gdb-apple/gdb-apple-1752.ebuild
b/sys-devel/gdb-apple/gdb-apple-1752.ebuild
index f374628fb7d..26baa8079e9 100644
--- a/sys-devel/gdb-apple/gdb-apple-1752.ebuild
+++ b/sys-devel/gdb-apple/gdb-apple-1752.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
APPLE_PV=${PV}
DESCRIPTION="Apple branch of the GNU Debugger, Developer Tools 4.3"
@@ -20,7 +20,8 @@ IUSE="nls"
RDEPEND=">=sys-libs/ncurses-5.2-r2
=dev-db/sqlite-3*"
DEPEND="${RDEPEND}
- nls? ( sys-devel/gettext )"
+ nls? ( sys-devel/gettext )
+ || ( >=sys-devel/gcc-apple-4.2.1 sys-devel/llvm:* )"
S=${WORKDIR}/gdb-${APPLE_PV}/src
@@ -37,6 +38,12 @@ src_prepare() {
}
src_configure() {
+ if tc-is-gcc ; then
+ # force gcc-apple, FSF gcc doesn't grok this code
+ export CC=${CTARGET}-gcc-4.2.1
+ export CXX=${CTARGET}-g++-4.2.1
+ fi
+
replace-flags -O? -O2
econf \
--disable-werror \