aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-02-25 19:27:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-02-25 19:27:54 +0000
commit24b495c61968cc2162d36ed36991f5cd78d49f7b (patch)
tree475b6b9e8353a0af3646f450e190498ca8cfda06 /toolchain/uClibc/Makefile
parent8b22b8e61f0de9eae46a9cedc6e2d0b02092ed4d (diff)
downloadupstream-24b495c61968cc2162d36ed36991f5cd78d49f7b.tar.gz
upstream-24b495c61968cc2162d36ed36991f5cd78d49f7b.tar.bz2
upstream-24b495c61968cc2162d36ed36991f5cd78d49f7b.zip
add menuconfig item to enable uClibc debug builds
SVN-Revision: 19860
Diffstat (limited to 'toolchain/uClibc/Makefile')
-rw-r--r--toolchain/uClibc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile
index f1e6fedb82..4ea15f14bc 100644
--- a/toolchain/uClibc/Makefile
+++ b/toolchain/uClibc/Makefile
@@ -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