From: Gustavo Zacarias Date: Thu, 24 Apr 2014 01:00:32 +0000 (-0300) Subject: package/gcc: disable libsanitizer for uClibc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=554e29e267e6b36a0fd78c82cbad2c82d939eb7f;p=buildroot.git 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 Signed-off-by: Peter Korsgaard --- 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