sys-devel/binutils-apple: fix 7.3.1 on case-sensitive filesystems, bug #601804
authorFabian Groffen <grobian@gentoo.org>
Thu, 15 Dec 2016 15:00:53 +0000 (16:00 +0100)
committerFabian Groffen <grobian@gentoo.org>
Thu, 15 Dec 2016 15:01:05 +0000 (16:01 +0100)
Package-Manager: portage-2.3.0

sys-devel/binutils-apple/binutils-apple-7.3.1.ebuild

index 55be11280a7bc8e785878a6940c20eebe393306f..ec675e41cfcdce78188da9dce38819226e261186 100644 (file)
@@ -30,8 +30,8 @@ LICENSE="APSL-2"
 KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
 IUSE="lto test multitarget"
 
-# ld64 can now only be compiled using llvm and libc++ since it massivley uses
-# C++11 language fatures. *But additionally* the as driver now defaults to
+# ld64 can now only be compiled using llvm and libc++ since it massively uses
+# C++11 language features. *But additionally* the as driver now defaults to
 # calling clang as the assembler on many platforms. This can be disabled using
 # -Wa,-Q but since it's default we make llvm a static runtime dependency.
 RDEPEND="sys-devel/binutils-config
@@ -65,6 +65,8 @@ src_prepare() {
        cd "${S}"/${LD64}/src
        cp "${S}"/ld64-136-compile_stubs.h ld/compile_stubs.h
        cp "${S}"/ld64-264.3.101-Makefile Makefile
+       # provide right file for case-sensitive filesystems, bug #601804
+       ( cd ld && ln -s {B,b}itcode.hpp >& /dev/null )
 
        epatch "${S}"/ld64-264.3.101-nolto.patch
        epatch "${S}"/ld64-241.9-extraneous-includes.patch