--- a/files/llvm-3.5-musl-compiler-rt.patch +++ a/files/llvm-3.5-musl-compiler-rt.patch @@ -1,58 +1,58 @@ -diff -ur a/llvm-3.5.0.src/projects/compiler-rt/lib/Makefile.mk b/llvm-3.5.0.src/projects/compiler-rt/lib/Makefile.mk --- a/files/llvm-3.5-musl-support.patch 2014-02-24 09:37:41.000000000 -0100 +++ a/files/llvm-3.5-musl-support.patch 2015-01-07 13:56:41.617428317 -0100 @@ -1,124 +1,67 @@ -adapted from llvm-alpine-linux.patch from Alpine - -diff -ru llvm-3.5.0.src.orig/include/llvm/ADT/Triple.h llvm-3.5.0.src/include/llvm/ADT/Triple.h --- a/llvm-3.5.0-r99.ebuild 2014-08-07 07:51:51.000000000 -0300 +++ a/llvm-3.5.0-r99.ebuild 2014-11-12 14:53:36.571808822 -0200 @@ -149,12 +149,13 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-3.5-musl-fixes.patch epatch "${FILESDIR}"/${PN}-3.5-musl-support.patch - epatch "${FILESDIR}"/${PN}-3.5-musl-compiler-rt.patch epatch "${FILESDIR}"/${P}-fix_LLVMExports_cmake.patch if use clang; then # Automatically select active system GCC's libraries, bugs #406163 and #417913 + epatch "${FILESDIR}"/${PN}-3.5-musl-compiler-rt.patch + epatch "${FILESDIR}"/${PN}-3.5-musl-clang-support.patch epatch "${FILESDIR}"/clang-3.5-gentoo-runtime-gcc-detection-v3.patch epatch "${FILESDIR}"/clang-3.5-gentoo-install.patch --- a/files/llvm-3.5-musl-clang-support.patch +++ a/files/llvm-3.5-musl-clang-support.patch