From 2b929c986b3ab226e55da85a2131b04d26684e9a Mon Sep 17 00:00:00 2001 From: Louis Mayencourt Date: Mon, 29 Apr 2019 16:35:30 +0100 Subject: [PATCH] romlib: Improve compilation flags definition * Optimization flags were only provided for debug build. * Set optimisation level to -O1 * Remove CFLAGS which is never used for romlib * Remove the ignored -g flag from LDFLAGS Change-Id: Id4b69026d8a322ed4cb0acf06c350f13d31571ad Signed-off-by: Louis Mayencourt --- lib/romlib/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/romlib/Makefile b/lib/romlib/Makefile index 12fdfa8ea..7a3a51ea0 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