diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-05-25 08:48:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-05-25 09:00:11 +0000 |
commit | 16d332d96a9626de04212b6d54769b776d14b88b (patch) | |
tree | ef36cf461c792592478d4be485d2d3597f381cc6 /main/llvm/compiler-rt-sanitizer-off_t.patch | |
parent | 07cb73824dbb9fa695fb3fe2baf3e69bdff49016 (diff) | |
download | aports-16d332d96a9626de04212b6d54769b776d14b88b.tar.bz2 aports-16d332d96a9626de04212b6d54769b776d14b88b.tar.xz |
main/llvm: fix build on x86
Diffstat (limited to 'main/llvm/compiler-rt-sanitizer-off_t.patch')
-rw-r--r-- | main/llvm/compiler-rt-sanitizer-off_t.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/llvm/compiler-rt-sanitizer-off_t.patch b/main/llvm/compiler-rt-sanitizer-off_t.patch new file mode 100644 index 0000000000..eee8ab0626 --- /dev/null +++ b/main/llvm/compiler-rt-sanitizer-off_t.patch @@ -0,0 +1,16 @@ +on musl libc off_t is always 64bit + +This is needed for interception to build on 32 bit musl + +--- a/lib/sanitizer_common/sanitizer_internal_defs.h ++++ b/lib/sanitizer_common/sanitizer_internal_defs.h +@@ -87,7 +87,8 @@ + // like pread and mmap, as opposed to pread64 and mmap64. + // FreeBSD, Mac and Linux/x86-64 are special. + #if SANITIZER_FREEBSD || SANITIZER_MAC || \ +- (SANITIZER_LINUX && defined(__x86_64__)) ++ (SANITIZER_LINUX && \ ++ (defined(__x86_64__) || (!defined(__GLIBC__) && !SANITIZER_ANDROID))) + typedef u64 OFF_T; + #else + typedef uptr OFF_T; |