sys-devel/binutils-apple: workaround llvm-3.9.{0,1} bug
authorFabian Groffen <grobian@gentoo.org>
Sun, 1 Jan 2017 13:15:51 +0000 (14:15 +0100)
committerFabian Groffen <grobian@gentoo.org>
Sun, 1 Jan 2017 13:16:38 +0000 (14:16 +0100)
Package-Manager: portage-2.2.28-prefix

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

index 2d54d8cac28e54569a4e3286988037250e4e89c1..9eb28b9e60ef38de860143fe148094565a526321 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -78,6 +78,12 @@ src_prepare() {
        epatch "${S}"/ld64-241.9-cc_md5.patch
        epatch "${S}"/ld64-264.3.102-bitcode-case.patch
 
+       # workound llvm-3.9.{0,1} issue
+       # https://bugs.gentoo.org/show_bug.cgi?id=603580
+       # https://groups.google.com/forum/#!topic/llvm-dev/JY6nuKE__sU
+       # http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160829/169553.html
+       sed -i -e '/COMPILE_TIME_ASSERT/d' ld/parsers/libunwind/*.hpp || die
+
        # provide missing headers from libunwind and dyld
        mkdir -p include/{mach,mach-o/arm} || die
        # never present because it's private