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>
Showing with 2 additions and 2 deletions
+2 -2
...@@ -24,9 +24,9 @@ else ...@@ -24,9 +24,9 @@ else
Q := Q :=
endif endif
LDFLAGS := --gc-sections -O1
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
CFLAGS := -g LDFLAGS += -Map=$(MAPFILE)
LDFLAGS := -g --gc-sections -O1 -Map=$(MAPFILE)
endif 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