Merge "romlib: Improve compilation flags definition" into integration
diff --git a/lib/romlib/Makefile b/lib/romlib/Makefile
index 12fdfa8..7a3a51e 100644
--- a/lib/romlib/Makefile
+++ b/lib/romlib/Makefile
@@ -24,9 +24,9 @@
   Q :=
 endif
 
+LDFLAGS := --gc-sections -O1
 ifeq ($(DEBUG),1)
-   CFLAGS  := -g
-   LDFLAGS := -g --gc-sections -O1 -Map=$(MAPFILE)
+   LDFLAGS += -Map=$(MAPFILE)
 endif