Commit 2b929c98 authored by Louis Mayencourt's avatar Louis Mayencourt Committed by Sandrine Bailleux
Browse files

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: default avatarLouis Mayencourt <louis.mayencourt@arm.com>
parent 482fc9c8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment