add menuconfig item to enable uClibc debug builds
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 25 Feb 2010 19:27:54 +0000 (19:27 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 25 Feb 2010 19:27:54 +0000 (19:27 +0000)
SVN-Revision: 19860

toolchain/uClibc/Config.in
toolchain/uClibc/Makefile

index e7f016a4c5b2c5b74412de82add23175b518fcd8..82e978a1299c4033065e63515409b25bbb249790 100644 (file)
@@ -18,3 +18,11 @@ choice
                depends BROKEN
 
 endchoice
+
+
+# Debug version.
+
+config UCLIBC_ENABLE_DEBUG
+       bool "Build with debug information"
+       depends on TOOLCHAINOPTS && USE_UCLIBC
+       default n
index f1e6fedb82284ea501be4457f1a45bf53efd660d..4ea15f14bc3d775bab7fef71899cc684c6a30686 100644 (file)
@@ -97,6 +97,10 @@ UCLIBC_MAKE = PATH='$(TARGET_PATH)' $(MAKE) -C $(HOST_BUILD_DIR) \
        LIBGCC="$(subst libgcc.a,libgcc_initial.a,$(shell $(TARGET_CC) -print-libgcc-file-name))" \
        DOSTRIP=""
 
+ifeq ($(CONFIG_UCLIBC_ENABLE_DEBUG),y)
+       UCLIBC_MAKE += DODEBUG=y
+endif
+
 define Host/Compile
        $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(HOST_BUILD_DIR)/Rules.mak
        $(UCLIBC_MAKE) PREFIX= all