summaryrefslogtreecommitdiff
path: root/lib/romlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/romlib')
-rw-r--r--lib/romlib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/romlib/Makefile b/lib/romlib/Makefile
index 12fdfa8e..7a3a51ea 100644
--- a/lib/romlib/Makefile
+++ b/lib/romlib/Makefile
@@ -24,9 +24,9 @@ else
Q :=
endif
+LDFLAGS := --gc-sections -O1
ifeq ($(DEBUG),1)
- CFLAGS := -g
- LDFLAGS := -g --gc-sections -O1 -Map=$(MAPFILE)
+ LDFLAGS += -Map=$(MAPFILE)
endif