summaryrefslogtreecommitdiff
path: root/klibc/MCONFIG
diff options
context:
space:
mode:
Diffstat (limited to 'klibc/MCONFIG')
-rw-r--r--klibc/MCONFIG5
1 files changed, 5 insertions, 0 deletions
diff --git a/klibc/MCONFIG b/klibc/MCONFIG
index 7da150d031..3fae2898c6 100644
--- a/klibc/MCONFIG
+++ b/klibc/MCONFIG
@@ -62,5 +62,10 @@ ERRLIST = 1
#
include $(KLIBSRC)/arch/$(ARCH)/MCONFIG
+ifeq ($(DEBUG),y)
+STRIP = /bin/true -Since_we_are_debugging
+OPTFLAGS += -O1 -g
+endif
+
# How to tell the linker main() is the entrypoint
EMAIN ?= -e main