aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-28 21:33:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-28 21:33:30 +0000
commitc0c92f8a1aef2a8f2681c8bb43c369f7ced7fa36 (patch)
treedabbe5d8da8a449e5cd271f26d0f3fefca9030ad /toolchain
parent12fff1c6a2057ff0e7781c011b5219d127e9ff9a (diff)
downloadmaster-187ad058-c0c92f8a1aef2a8f2681c8bb43c369f7ced7fa36.tar.gz
master-187ad058-c0c92f8a1aef2a8f2681c8bb43c369f7ced7fa36.tar.bz2
master-187ad058-c0c92f8a1aef2a8f2681c8bb43c369f7ced7fa36.zip
gcc: disable libsanitzier off_t check to fix musl build
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40870 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/patches/4.8-linaro/210-disable_libsanitizer_off_t_check.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.8-linaro/210-disable_libsanitizer_off_t_check.patch b/toolchain/gcc/patches/4.8-linaro/210-disable_libsanitizer_off_t_check.patch
new file mode 100644
index 0000000000..56084692a1
--- /dev/null
+++ b/toolchain/gcc/patches/4.8-linaro/210-disable_libsanitizer_off_t_check.patch
@@ -0,0 +1,11 @@
+--- a/libsanitizer/interception/interception_type_test.cc
++++ b/libsanitizer/interception/interception_type_test.cc
+@@ -31,7 +31,7 @@ COMPILER_CHECK(sizeof(OFF64_T) == sizeof
+ // rest (they depend on _FILE_OFFSET_BITS setting when building an application).
+ # if defined(__ANDROID__) || !defined _FILE_OFFSET_BITS || \
+ _FILE_OFFSET_BITS != 64
+-COMPILER_CHECK(sizeof(OFF_T) == sizeof(off_t));
++// COMPILER_CHECK(sizeof(OFF_T) == sizeof(off_t));
+ # endif
+
+ #endif