# HG changeset patch # User "Yann E. MORIN" # Date 1388793777 -3600 # Node ID c65dc9b98841d9efba957bc54490ac1252180a3c # Parent dff359adf15c2dc7e7ec663dec34ae1438ba051e cc/gcc: diable libsanitizer without NPTL gcc-4.8 comes with a new library to sanitise memory access: - heap-, stack-, and global-buffer overflow, use-after-free - data-races between threads This library requires some _np parts of the API, which are not implemented in the (old) LinuxThreads, which is still available in uClibc. Since NPTL requires a i486 or above, i386 are stuck with using LT, which precludes building the libsanitizer. Disable libsanitizer, a bit like libatomic is. Signed-off-by: "Yann E. MORIN" Cc: Niels Penneman diff -r dff359adf15c -r c65dc9b98841 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Fri Jan 03 17:10:09 2014 +0100 +++ b/scripts/build/cc/gcc.sh Sat Jan 04 01:02:57 2014 +0100 @@ -647,6 +647,9 @@ if [ "${CT_THREADS}" = "none" ]; then extra_config+=(--disable-libatomic) fi + if [ "${CT_THREADS}" != "nptl" ]; then + extra_config+=(--disable-libsanitizer) + fi fi if [ "${CT_CC_GCC_LIBMUDFLAP}" = "y" ]; then extra_config+=(--enable-libmudflap)