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
commit2c6b6eda3435c2463b5e3c2596a85e0eaedfbc10 (patch)
treeaafe7a8a3349155411f35aaaff7fad9bb4b564d1 /toolchain/uClibc/Makefile
parentb272dda529cdfd650d3d7191f015cd0cc0806340 (diff)
downloadmaster-187ad058-2c6b6eda3435c2463b5e3c2596a85e0eaedfbc10.tar.gz
master-187ad058-2c6b6eda3435c2463b5e3c2596a85e0eaedfbc10.tar.bz2
master-187ad058-2c6b6eda3435c2463b5e3c2596a85e0eaedfbc10.zip
[toolchain] add menuconfig item to enable uClibc debug builds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19860 3c298f89-4303-0410-b956-a3cf2f4a3e73
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