uClibc: add back a few cflags that were being overwritten, might fix a few segfauls...
authorFelix Fietkau <nbd@openwrt.org>
Wed, 24 Nov 2010 00:30:26 +0000 (00:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 24 Nov 2010 00:30:26 +0000 (00:30 +0000)
SVN-Revision: 24120

toolchain/uClibc/Makefile

index 0df26d097fdf76ca76a9a60aa54bf199eea0d506..c5dea08bb42f91b05d5ac52e4df890a48faa632a 100644 (file)
@@ -101,12 +101,17 @@ endef
 define Host/Configure
 endef
 
+CPU_CFLAGS = \
+       -funsigned-char -fno-builtin -fno-asm \
+       --std=gnu99 -ffunction-sections -fdata-sections \
+       $(TARGET_CFLAGS)
+
 UCLIBC_MAKE = PATH='$(TARGET_PATH)' $(MAKE) -C $(HOST_BUILD_DIR) \
        $(TARGET_CONFIGURE_OPTS) \
        DEVEL_PREFIX=/ \
        RUNTIME_PREFIX=/ \
        HOSTCC="$(HOSTCC)" \
-       CPU_CFLAGS="$(TARGET_CFLAGS)" \
+       CPU_CFLAGS="$(CPU_CFLAGS)" \
        ARCH="$(CONFIG_ARCH)" \
        LIBGCC="$(subst libgcc.a,libgcc_initial.a,$(shell $(TARGET_CC) -print-libgcc-file-name))" \
        DOSTRIP=""