From 9be8626750f1d2f310f107cd08daf6b37a99896e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 26 Aug 2017 15:03:33 +0000 Subject: [PATCH] clang was producing unusable binaries on armv5tel (Closes #873306) Thanks to Adrian Bunk for the patch --- debian/changelog | 2 ++ debian/rules | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index 1c2676ab..812dba53 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ llvm-toolchain-5.0 (1:5.0~+rc3-1) unstable; urgency=medium * Fix the C++ include path order (Closes: #859083) * Disable -gsplit-dwarf when using gcc 7 for causing a linking issue See https://bugs.llvm.org/show_bug.cgi?id=34140 + * clang was producing unusable binaries on armv5tel (Closes #873306) + Thanks to Adrian Bunk for the patch -- Sylvestre Ledru Sat, 26 Aug 2017 10:16:07 +0200 diff --git a/debian/rules b/debian/rules index bd4e999e..2fe46249 100755 --- a/debian/rules +++ b/debian/rules @@ -59,6 +59,9 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armel)) # 3.8 fails to build, disable the compiler_rt builtins # See http://lists.llvm.org/pipermail/llvm-dev/2016-May/099761.html CMAKE_EXTRA += -DCOMPILER_RT_BUILD_BUILTINS=OFF + # Prevent clang from getting a > v4t default + # See bug #868779 + CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabi endif ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) ge 4.8-20121128-1~ ; echo $$?),0)