[OpenWrt-Devel] [PATCH 2/4] [toolchain] gcc: gcc 4.9.x disable libsanitize

dirkneukirchen at web.de dirkneukirchen at web.de
Wed Jun 25 05:31:12 EDT 2014


From: Dirk Neukirchen <dirkneukirchen at web.de>

gcc 4.9.x enables building of libsanitize

- libsanitize needs some headers that are not available
  in uclibc (netrom/netrom.h)

according to buildroot project:
- build fail with musl
- need wordexp with uclibc which increases uclibc size
http://git.buildroot.net/buildroot/commit/?id=5f4d658d888b539de9a6247ae5b1a0999de5d4ec
http://git.buildroot.net/buildroot/commit/?id=554e29e267e6b36a0fd78c82cbad2c82d939eb7f

Signed-off-by: Dirk Neukirchen <dirkneukirchen at web.de>
---
 toolchain/gcc/final/Makefile   | 1 +
 toolchain/gcc/minimal/Makefile | 1 +
 2 files changed, 2 insertions(+)

diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile
index 2c25263..b566682 100644
--- a/toolchain/gcc/final/Makefile
+++ b/toolchain/gcc/final/Makefile
@@ -4,6 +4,7 @@ include ../common.mk
 
 GCC_CONFIGURE += \
 	--with-headers=$(TOOLCHAIN_DIR)/include \
+	--disable-libsanitizer \
 	--enable-languages=$(TARGET_LANGUAGES) \
 	--enable-shared \
 	--enable-threads \
diff --git a/toolchain/gcc/minimal/Makefile b/toolchain/gcc/minimal/Makefile
index a2564a1..0344e1a 100644
--- a/toolchain/gcc/minimal/Makefile
+++ b/toolchain/gcc/minimal/Makefile
@@ -6,6 +6,7 @@ GCC_CONFIGURE += \
 	--with-newlib \
 	--without-headers \
 	--enable-languages=c \
+	--disable-libsanitizer \
 	--disable-libssp \
 	--disable-shared \
 	--disable-threads
-- 
2.0.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list