tools: acrn-crashlog: update Makefile flags

This patch is to sync the compiler options as the Makefile of device model.

Tracked-On: #1122
Signed-off-by: CHEN Gang <gang.c.chen@intel.com>
Reviewed-by: Zhi Jin <zhi.jin@intel.com>
Reviewed-by: Liu, Xinwu <xinwu.liu@intel.com>
This commit is contained in:
CHEN Gang
2018-09-20 14:14:07 +08:00
committed by lijinxia
parent 726711e27d
commit 5affe53a9f
2 changed files with 36 additions and 5 deletions

View File

@@ -8,8 +8,7 @@ LIBS = -lpthread -lxml2 -lcrypto -lrt -lblkid -lext2fs -lcom_err \
INCLUDE += -I $(CURDIR)/include -I /usr/include/libxml2
INCLUDE += -I $(BUILDDIR)/include/acrnprobe
CFLAGS += $(INCLUDE)
CFLAGS += -g -O0 -std=gnu11
CFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -fdata-sections
LDFLAGS += $(LIBS) -Wl,--gc-sections