From 833dc05f829ff03bb74a34425be18bfde24d67eb Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 25 Sep 2011 09:32:15 +0000 Subject: Make x86 thread defines available on PPC to fix compilation, bug #384339 (Portage version: 2.2.01.19295-prefix/cvs/Darwin i386) --- sys-devel/binutils-apple/ChangeLog | 5 ++++- sys-devel/binutils-apple/binutils-apple-4.1.ebuild | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'sys-devel') diff --git a/sys-devel/binutils-apple/ChangeLog b/sys-devel/binutils-apple/ChangeLog index 34869d0df05a..2bbe49e53474 100644 --- a/sys-devel/binutils-apple/ChangeLog +++ b/sys-devel/binutils-apple/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-devel/binutils-apple # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-apple/ChangeLog,v 1.20 2011/09/25 08:03:35 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-apple/ChangeLog,v 1.21 2011/09/25 09:32:15 grobian Exp $ + + 25 Sep 2011; Fabian Groffen binutils-apple-4.1.ebuild: + Make x86 thread defines available on PPC to fix compilation, bug #384339 25 Sep 2011; Fabian Groffen binutils-apple-4.1.ebuild: Stop compiling unused libunwind, mimic Availability.h macros for pre OS X diff --git a/sys-devel/binutils-apple/binutils-apple-4.1.ebuild b/sys-devel/binutils-apple/binutils-apple-4.1.ebuild index 51fcdace491b..e8d5fae2d980 100644 --- a/sys-devel/binutils-apple/binutils-apple-4.1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-4.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-apple/binutils-apple-4.1.ebuild,v 1.3 2011/09/25 08:03:35 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-apple/binutils-apple-4.1.ebuild,v 1.4 2011/09/25 09:32:15 grobian Exp $ EAPI="3" @@ -89,8 +89,11 @@ src_prepare() { echo "char ldVersionString[] = ${VER_STR};" > version.cpp epatch "${FILESDIR}"/${LD64%.1}-debug-backtrace.patch - [[ ${CHOST} == powerpc*-darwin* ]] && \ + if [[ ${CHOST} == powerpc*-darwin* ]] ; then epatch "${FILESDIR}"/${LD64%.1}-darwin8-no-mlong-branch-warning.patch + sed -i -e '/#include /a\#include ' \ + ld/HeaderAndLoadCommands.hpp || die + fi if use !lto ; then sed -i -e '/#define LTO_SUPPORT 1/d' other/ObjectDump.cpp || die fi -- cgit v1.2.3-65-gdbad