summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-devel/binutils-apple/ChangeLog5
-rw-r--r--sys-devel/binutils-apple/binutils-apple-4.1.ebuild7
2 files changed, 9 insertions, 3 deletions
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 <grobian@gentoo.org> binutils-apple-4.1.ebuild:
+ Make x86 thread defines available on PPC to fix compilation, bug #384339
25 Sep 2011; Fabian Groffen <grobian@gentoo.org> 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 <mach-o\/loader.h>/a\#include <mach/i386/thread_status.h>' \
+ ld/HeaderAndLoadCommands.hpp || die
+ fi
if use !lto ; then
sed -i -e '/#define LTO_SUPPORT 1/d' other/ObjectDump.cpp || die
fi