From: Andrew Cooper Date: Mon, 19 Apr 2021 15:05:12 +0000 (+0100) Subject: build: Drop lto X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=069e331b2d87e4625bfc12567f4b6ce79e400cc2;p=people%2Fandrewcoop%2Fxen-test-framework.git build: Drop lto It's experimental, fairly broken, and getting in the way of the build system overhaul to support non-x86 architectures. Signed-off-by: Andrew Cooper --- diff --git a/build/common.mk b/build/common.mk index 2a146c6..e43dd62 100644 --- a/build/common.mk +++ b/build/common.mk @@ -17,10 +17,6 @@ $(foreach env,$(64BIT_ENVIRONMENTS),$(eval $(env)_arch := x86_64)) COMMON_FLAGS := -pipe -I$(ROOT)/include -I$(ROOT)/arch/x86/include -MMD -MP -# Experimental LTO support. `make ... lto=y` -COMMON_CFLAGS-$(lto) := -flto -LDFLAGS-$(lto) := -flto -fuse-ld=gold - COMMON_AFLAGS := $(COMMON_FLAGS) -D__ASSEMBLY__ COMMON_CFLAGS := $(COMMON_FLAGS) $(COMMON_CFLAGS-y) COMMON_CFLAGS += -Wall -Wextra -Werror -std=gnu99 -Wstrict-prototypes -O3 -g