From 8055039545ce252333143755c462a02c35482853 Mon Sep 17 00:00:00 2001 From: Yin Fengwei Date: Thu, 25 Apr 2019 17:47:10 +0800 Subject: [PATCH] Makefile: add gcc option to workaround build issue with latest gcc With latest gcc, there are build error with current ACRN code. Fixing could involve many code changes. We use gcc option to remove build error as temperary workaround. And will fix the build error one by one. Tracked-On: #3010 Signed-off-by: Yin Fengwei --- devicemodel/Makefile | 1 + tools/acrn-manager/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/devicemodel/Makefile b/devicemodel/Makefile index ed08ec392..9a95d44ac 100644 --- a/devicemodel/Makefile +++ b/devicemodel/Makefile @@ -20,6 +20,7 @@ CFLAGS += -Werror CFLAGS += -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 CFLAGS += -Wformat -Wformat-security -fno-strict-aliasing CFLAGS += -fpie +CFLAGS += -Wno-stringop-truncation -Wno-address-of-packed-member CFLAGS += -I$(BASEDIR)/include CFLAGS += -I$(BASEDIR)/include/public diff --git a/tools/acrn-manager/Makefile b/tools/acrn-manager/Makefile index 2e3b9d9be..fca8288d4 100644 --- a/tools/acrn-manager/Makefile +++ b/tools/acrn-manager/Makefile @@ -14,6 +14,7 @@ MANAGER_CFLAGS += -Wformat -Wformat-security -fno-strict-aliasing MANAGER_CFLAGS += -fpie -fpic #FIXME: remove me. work-around for system() calls, which will be removed MANAGER_CFLAGS += -Wno-format-truncation -Wno-unused-result +MANAGER_CFLAGS += -Wno-stringop-truncation MANAGER_CFLAGS += $(CFLAGS) MANAGER_CFLAGS += -I../../devicemodel/include