]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
LTO: Specify the use of gold with a compiler option rather than an explicit path
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 11 May 2019 18:21:02 +0000 (19:21 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 11 May 2019 18:38:22 +0000 (19:38 +0100)
This allows the compiler to pick up gold from the path, rather than forcing
the use of the system gold all the time.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
build/common.mk

index b786ddf5487b8a9f712fb32316e7727bb802127c..6480a5476121e0a00eac7e8b802b74bbfb91c2f7 100644 (file)
@@ -19,7 +19,7 @@ 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 -B /usr/lib/gold-ld
+LDFLAGS-$(lto) := -flto -fuse-ld=gold
 
 COMMON_AFLAGS := $(COMMON_FLAGS) -D__ASSEMBLY__
 COMMON_CFLAGS := $(COMMON_FLAGS) $(COMMON_CFLAGS-y)