summaryrefslogtreecommitdiffstats
path: root/package/gcc
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-04-23 22:00:32 -0300
committerPeter Korsgaard <peter@korsgaard.com>2014-04-24 13:46:43 +0200
commit554e29e267e6b36a0fd78c82cbad2c82d939eb7f (patch)
tree86b92c54d2f3b49be97a58d83cd1fd4be13485b3 /package/gcc
parenta8b3db9d3e47e27457dacbed9609e6c10874c337 (diff)
downloadbuildroot-554e29e267e6b36a0fd78c82cbad2c82d939eb7f.tar.gz
buildroot-554e29e267e6b36a0fd78c82cbad2c82d939eb7f.zip
package/gcc: disable libsanitizer for uClibc
libsanitizer requires wordexp() support which we lack in our current default uClibc configurations (and it's fat & big). Hence disable it when the toolchain is uClibc-based. It only affects gcc 4.9+ since it's default on now for supported platforms. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc')
-rw-r--r--package/gcc/gcc.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index dff6dce466..32219cc3db 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -125,6 +125,11 @@ ifneq ($(BR2_TOOLCHAIN_BUILDROOT_WCHAR),y)
HOST_GCC_COMMON_CONF_OPT += --disable-libquadmath
endif
+# libsanitizer requires wordexp, not in default uClibc config
+ifeq ($(BR2_TOOLCHAIN_BUILDROOT_UCLIBC),y)
+HOST_GCC_COMMON_CONF_OPT += --disable-libsanitizer
+endif
+
ifeq ($(BR2_GCC_ENABLE_TLS),y)
HOST_GCC_COMMON_CONF_OPT += --enable-tls
else
OpenPOWER on IntegriCloud