diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2014-01-04 01:02:57 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2014-01-04 01:02:57 +0100 |
commit | c6fd7bd2d9cfb03fc3c8f79275be5887bc152fb8 (patch) | |
tree | 037576b08c51b55ce07df4d1b5cccca7beb3e98a /scripts/build/cc | |
parent | 05429e01f239d2b00dd60d9e154f6ea02361a1d1 (diff) | |
download | crosstool-ng-c6fd7bd2d9cfb03fc3c8f79275be5887bc152fb8.tar.gz crosstool-ng-c6fd7bd2d9cfb03fc3c8f79275be5887bc152fb8.tar.bz2 crosstool-ng-c6fd7bd2d9cfb03fc3c8f79275be5887bc152fb8.zip |
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" <yann.morin.1998@free.fr>
Cc: Niels Penneman <niels@penneman.org>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 623872e5..596abc96 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -647,6 +647,9 @@ do_cc_backend() { 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) |