summaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 0261d34..7dd9dc5 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -23,6 +23,9 @@ CFLAGS += \
ifeq ($(CONFIG_DEBUG),y)
CFLAGS += -g
-LDFLAGS += -g
endif
+ifeq ($(CONFIG_STATIC),y)
+LDFLAGS += -static
+endif
+LDFLAGS += -nostdlib