summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2015-10-27 19:32:38 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2015-10-27 19:32:51 +0100
commitc920eb1e343b78b6ddf21915654103e12c4c83dc (patch)
tree2181ab2458d693b86cc9cb9cfc41c7a126e95341 /sys-devel/llvm/llvm-3.7.0-r2.ebuild
parentsci-chemistry/openbabel-perl: Fix for gcc-5 (diff)
downloadgentoo-c920eb1e343b78b6ddf21915654103e12c4c83dc.tar.gz
gentoo-c920eb1e343b78b6ddf21915654103e12c4c83dc.tar.bz2
gentoo-c920eb1e343b78b6ddf21915654103e12c4c83dc.zip
sys-devel/llvm: fix compilation on armv5
Bug #562706 by maekke compiler-rt forces some -march flags when detecting arm Package-Manager: portage-2.2.23
Diffstat (limited to 'sys-devel/llvm/llvm-3.7.0-r2.ebuild')
-rw-r--r--sys-devel/llvm/llvm-3.7.0-r2.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-devel/llvm/llvm-3.7.0-r2.ebuild b/sys-devel/llvm/llvm-3.7.0-r2.ebuild
index c63f3705f19..8856b56b9cb 100644
--- a/sys-devel/llvm/llvm-3.7.0-r2.ebuild
+++ b/sys-devel/llvm/llvm-3.7.0-r2.ebuild
@@ -181,6 +181,10 @@ src_prepare() {
epatch "${FILESDIR}"/cmake/clang-0001-Install-clang-runtime-into-usr-lib-without-suffix.patch
epatch "${FILESDIR}"/cmake/compiler-rt-0001-cmake-Install-compiler-rt-into-usr-lib-without-suffi.patch
+ # Do not force -march flags on arm platforms
+ # https://bugs.gentoo.org/show_bug.cgi?id=562706
+ epatch "${FILESDIR}"/cmake/${P}-compiler_rt_arm_march_flags.patch
+
# Make it possible to override CLANG_LIBDIR_SUFFIX
# (that is used only to find LLVMgold.so)
# https://llvm.org/bugs/show_bug.cgi?id=23793