fix subtle bug inherited from dash
[oweals/busybox.git] / Makefile.flags
index bb5cef0d9eeed0700c0922421d83b610bde1dc13..384b0f8d6b958847b26535e4227bfa0319e6f036 100644 (file)
@@ -20,3 +20,12 @@ CFLAGS += \
        -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
+endif
+
+ifeq ($(CONFIG_STATIC),y)
+LDFLAGS += -static
+endif
+#LDFLAGS += -nostdlib