]> xenbits.xensource.com Git - xtf.git/commitdiff
build: Drop lto
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Apr 2021 15:05:12 +0000 (16:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Apr 2021 20:32:45 +0000 (21:32 +0100)
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 <andrew.cooper3@citrix.com>
build/common.mk

index 2a146c6ac218ff9fa1e2a729fcc2051c8c723d41..e43dd628194861cec59e2650c55329af5d71d98e 100644 (file)
@@ -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