- set LD to ld
- simplify the cmd_busybox__ a bit and pass the LDFLAGS via -Wl down to CC
diff --git a/Makefile.flags b/Makefile.flags
index 0261d34..7dd9dc5 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -23,6 +23,9 @@
 
 ifeq ($(CONFIG_DEBUG),y)
 CFLAGS += -g
-LDFLAGS += -g
 endif
 
+ifeq ($(CONFIG_STATIC),y)
+LDFLAGS += -static
+endif
+LDFLAGS += -nostdlib