diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-09-25 09:32:15 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2011-09-25 09:32:15 +0000 |
commit | 833dc05f829ff03bb74a34425be18bfde24d67eb (patch) | |
tree | ecfcb7d60629a6334cd37a09a926238c5cd38b7b /sys-devel | |
parent | Fix license (diff) | |
download | gentoo-2-833dc05f829ff03bb74a34425be18bfde24d67eb.tar.gz gentoo-2-833dc05f829ff03bb74a34425be18bfde24d67eb.tar.bz2 gentoo-2-833dc05f829ff03bb74a34425be18bfde24d67eb.zip |
Make x86 thread defines available on PPC to fix compilation, bug #384339
(Portage version: 2.2.01.19295-prefix/cvs/Darwin i386)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/binutils-apple/ChangeLog | 5 | ||||
-rw-r--r-- | sys-devel/binutils-apple/binutils-apple-4.1.ebuild | 7 |
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 |