From d5fa32f730fe4f2ce74ab5ea9647c0757d82e7f3 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 5 Jun 2013 09:14:07 +0000 Subject: [PATCH] Fix the FTBFS under HURD (hurd-endian.diff) --- debian/changelog | 1 + debian/patches/hurd-endian.diff | 13 +++++++++++++ debian/patches/series | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 debian/patches/hurd-endian.diff diff --git a/debian/changelog b/debian/changelog index 36b64b59..68694d95 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ llvm-toolchain-3.3 (1:3.3~+rc3-1~exp2) UNRELEASED; urgency=low * Do not use binutils-gold for powerpc * Print the lldb test failures * Create the compiler-rt directory for unsupported platforms + * Fix the FTBFS under HURD (hurd-endian.diff) -- diff --git a/debian/patches/hurd-endian.diff b/debian/patches/hurd-endian.diff new file mode 100644 index 00000000..f6f2b39e --- /dev/null +++ b/debian/patches/hurd-endian.diff @@ -0,0 +1,13 @@ +Index: llvm-toolchain-3.3-3.3~0rc2/include/llvm/Support/Host.h +=================================================================== +--- llvm-toolchain-3.3-3.3~0rc2.orig/include/llvm/Support/Host.h 2013-04-15 22:13:59.000000000 +0200 ++++ llvm-toolchain-3.3-3.3~0rc2/include/llvm/Support/Host.h 2013-06-05 11:13:28.000000000 +0200 +@@ -16,7 +16,7 @@ + + #include "llvm/ADT/StringMap.h" + +-#if defined(__linux__) ++#if defined(__linux__) || defined(__GNU__) + #include + #else + #ifndef LLVM_ON_WIN32 diff --git a/debian/patches/series b/debian/patches/series index 3a48e58f..60ac5ad9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -19,3 +19,5 @@ declare_clear_cache.diff 33-armhf-defaults.diff 34-powerpc-no-altivec.diff ia64-fix.diff +hurd-endian.diff +