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 <louis.mayencourt@arm.com>
This commit is contained in:
Louis Mayencourt 2019-04-29 16:35:30 +01:00 committed by Sandrine Bailleux
parent 482fc9c888
commit 2b929c986b
1 changed files with 2 additions and 2 deletions

View File

@ -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