pc: build lx_emul and linux driver code with -O2

Ref genodelabs/genode#4416
This commit is contained in:
Stefan Kalkowski 2022-02-21 11:23:38 +01:00 committed by Norman Feske
parent 14d1ca17a9
commit e1a2b5c8d4

View File

@ -131,6 +131,9 @@ CC_C_OPT += -Wno-packed-not-aligned
CC_C_OPT += -Wno-discarded-qualifiers
CC_C_OPT += -Wno-format
# avoid link errors whenever the build config's CC_OLEVEL is set to -O0
override CC_OLEVEL := -O2
LX_SRC = $(shell grep ".*\.c" $(PRG_DIR)/source.list)
SRC_S += $(shell grep ".*\.S" $(PRG_DIR)/source.list)
SRC_C += $(LX_SRC)