From a56df802eb3bc57d6ae883ad30c1825de0b24c44 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 31 Aug 2014 17:30:34 +0200 Subject: cc/gcc: add option to enable/disable libsanitizer libsaniotizer requires a few headers that are not in uClibc, for example. Also, it is only available for native threads (NPTL under glibc.) Finally, it is only available starting with gcc-4.8. Signed-off-by: "Yann E. MORIN" --- config/cc/gcc.in.2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config/cc/gcc.in.2') diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index ef976982..1b9515c8 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -143,6 +143,20 @@ config CC_GCC_LIBQUADMATH The default is 'N'. Say 'Y' if you need it, and report success/failure. +config CC_GCC_LIBSANITIZER + bool + prompt "Compile libsanitizer" + depends on CC_GCC_HAS_LIBSANITIZER + depends on THREADS_NATIVE + depends on ! LIBC_uClibc # Currently lacks required headers (like netrom.h) + help + libsanitizer is a library which provides run-time sanitising of either + or both of: + - memory access patterns (out-of-bonds, use-after-free) + - racy data accesses (in multi-threaded programs) + + The default is 'N'. Say 'Y' if you need it, and report success/failure. + #----------------------------------------------------------------------------- comment "Misc. obscure options." -- cgit v1.2.3