summaryrefslogtreecommitdiff
path: root/debian/patches/D59702-mips64el-fix.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/D59702-mips64el-fix.diff')
-rw-r--r--debian/patches/D59702-mips64el-fix.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/D59702-mips64el-fix.diff b/debian/patches/D59702-mips64el-fix.diff
new file mode 100644
index 0000000..ef2254a
--- /dev/null
+++ b/debian/patches/D59702-mips64el-fix.diff
@@ -0,0 +1,17 @@
+Index: llvm-toolchain-8-8/compiler-rt/cmake/base-config-ix.cmake
+===================================================================
+--- llvm-toolchain-8-8.orig/compiler-rt/cmake/base-config-ix.cmake
++++ llvm-toolchain-8-8/compiler-rt/cmake/base-config-ix.cmake
+@@ -195,10 +195,10 @@ macro(test_targets)
+ # clang's default CPU's. In the 64-bit case, we must also specify the ABI
+ # since the default ABI differs between gcc and clang.
+ # FIXME: Ideally, we would build the N32 library too.
+- test_target_arch(mipsel "" "-mips32r2" "-mabi=32")
++ test_target_arch(mipsel "" "-mips32r2" "-mabi=32" "-D_LARGEFILE_SOURCE" "-D_FILE_OFFSET_BITS=64")
+ test_target_arch(mips64el "" "-mips64r2" "-mabi=64")
+ elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "mips")
+- test_target_arch(mips "" "-mips32r2" "-mabi=32")
++ test_target_arch(mips "" "-mips32r2" "-mabi=32" "-D_LARGEFILE_SOURCE" "-D_FILE_OFFSET_BITS=64")
+ test_target_arch(mips64 "" "-mips64r2" "-mabi=64")
+ elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "arm")
+ if(WIN32)