svn commit: trunk/busybox

aldot at busybox.net aldot at busybox.net
Wed Dec 13 17:44:26 UTC 2006


Author: aldot
Date: 2006-12-13 09:44:24 -0800 (Wed, 13 Dec 2006)
New Revision: 16900

Log:
- honor CONFIG_DEBUG


Modified:
   trunk/busybox/Makefile
   trunk/busybox/Makefile.flags


Changeset:
Modified: trunk/busybox/Makefile
===================================================================
--- trunk/busybox/Makefile	2006-12-13 16:56:59 UTC (rev 16899)
+++ trunk/busybox/Makefile	2006-12-13 17:44:24 UTC (rev 16900)
@@ -567,13 +567,13 @@
 # May be overridden by arch/$(ARCH)/Makefile
 quiet_cmd_busybox__ ?= LINK    $@
 ifdef CONFIG_STATIC
-      cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) \
+      cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \
       -static \
       -o $@ \
       -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
       -Wl,--start-group $(busybox-all) -Wl,--end-group
 else
-      cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ \
+      cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ $(LDFLAGS) \
       -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
       -Wl,--start-group $(busybox-all) -Wl,--end-group
 endif

Modified: trunk/busybox/Makefile.flags
===================================================================
--- trunk/busybox/Makefile.flags	2006-12-13 16:56:59 UTC (rev 16899)
+++ trunk/busybox/Makefile.flags	2006-12-13 17:44:24 UTC (rev 16900)
@@ -20,3 +20,9 @@
 	-funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \
 	-Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
 	-fomit-frame-pointer -ffunction-sections -fdata-sections
+
+ifeq ($(CONFIG_DEBUG),y)
+CFLAGS += -g
+LDFLAGS += -g
+endif
+




More information about the busybox-cvs mailing list