summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-08 18:21:24 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-08 18:21:40 +0100
commit52ebadc88d4f857f72911050b5717528241750bc (patch)
tree080ac4108ac5874518cc6a36b3015069394be42e
parentmedia-video/gxine: Migrate from LINGUAS to L10N. (diff)
downloadgentoo-52ebadc88d4f857f72911050b5717528241750bc.tar.gz
gentoo-52ebadc88d4f857f72911050b5717528241750bc.tar.bz2
gentoo-52ebadc88d4f857f72911050b5717528241750bc.zip
sys-devel/llvm: get compiler_rt working on ppc
Package-Manager: Portage-2.3.13, Repoman-2.3.3
-rw-r--r--sys-devel/llvm/llvm-3.4.2-r100.ebuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys-devel/llvm/llvm-3.4.2-r100.ebuild b/sys-devel/llvm/llvm-3.4.2-r100.ebuild
index c555e99f9731..5b59202f3591 100644
--- a/sys-devel/llvm/llvm-3.4.2-r100.ebuild
+++ b/sys-devel/llvm/llvm-3.4.2-r100.ebuild
@@ -119,11 +119,17 @@ src_prepare() {
epatch "${WORKDIR}/${P}-patchset"/clang/darwin_build_fix.patch
epatch "${WORKDIR}/${P}-patchset"/clang/darwin_prefix-include-paths.patch
eprefixify tools/clang/lib/Frontend/InitHeaderSearch.cpp
- fi
- if use prefix && use clang; then
- sed -i -e "/^CFLAGS /s@-Werror@-I${EPREFIX}/usr/include@" \
- projects/compiler-rt/make/platform/clang_*.mk || die
+ if use prefix ; then
+ sed -i -e "/^CFLAGS /s@-Werror@-I${EPREFIX}/usr/include@" \
+ projects/compiler-rt/make/platform/clang_*.mk || die
+ fi
+ if [[ ${CHOST} == powerpc*-apple-darwin* ]] ; then
+ # set ppc as arch for compiler_rt
+ local arch=${CHOST%%-*}
+ sed -i -e '/^UniversalArchs/s/:=.*$/:= '${arch/ower/}'/' \
+ projects/compiler-rt/make/platform/clang_darwin*.mk || die
+ fi
fi
local sub_files=(