diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2015-10-27 19:32:38 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2015-10-27 19:32:51 +0100 |
commit | c920eb1e343b78b6ddf21915654103e12c4c83dc (patch) | |
tree | 2181ab2458d693b86cc9cb9cfc41c7a126e95341 /sys-devel | |
parent | sci-chemistry/openbabel-perl: Fix for gcc-5 (diff) | |
download | gentoo-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')
-rw-r--r-- | sys-devel/llvm/files/cmake/llvm-3.7.0-compiler_rt_arm_march_flags.patch | 16 | ||||
-rw-r--r-- | sys-devel/llvm/llvm-3.7.0-r2.ebuild | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sys-devel/llvm/files/cmake/llvm-3.7.0-compiler_rt_arm_march_flags.patch b/sys-devel/llvm/files/cmake/llvm-3.7.0-compiler_rt_arm_march_flags.patch new file mode 100644 index 000000000000..943a8407f123 --- /dev/null +++ b/sys-devel/llvm/files/cmake/llvm-3.7.0-compiler_rt_arm_march_flags.patch @@ -0,0 +1,16 @@ +diff -Naur llvm-3.7.0.src.orig/projects/compiler-rt/cmake/config-ix.cmake llvm-3.7.0.src/projects/compiler-rt/cmake/config-ix.cmake +--- llvm-3.7.0.src.orig/projects/compiler-rt/cmake/config-ix.cmake 2015-07-30 06:28:50.000000000 +0200 ++++ llvm-3.7.0.src/projects/compiler-rt/cmake/config-ix.cmake 2015-10-27 17:10:47.365847079 +0100 +@@ -209,12 +209,6 @@ + test_target_arch(mips "" "-mips32r2" "--target=mips-linux-gnu") + test_target_arch(mips64 "" "-mips64r2" "-mabi=n64") + endif() +- elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "arm") +- test_target_arch(arm "" "-march=armv7-a") +- elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch32") +- test_target_arch(aarch32 "" "-march=armv8-a") +- elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64") +- test_target_arch(aarch64 "" "-march=armv8-a") + endif() + set(COMPILER_RT_OS_SUFFIX "") + endif() diff --git a/sys-devel/llvm/llvm-3.7.0-r2.ebuild b/sys-devel/llvm/llvm-3.7.0-r2.ebuild index c63f3705f197..8856b56b9cbe 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 |