1 From 5d6fa06b3104637289178a471dd28d7bf3e14e76 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Tue, 3 Jan 2023 11:00:09 -0800
4 Subject: [PATCH] Pass LD_GOLD=1 via makefile to enable gold linker
6 Current logic prefers gold if a toolchain has gold linker installed and
7 does not offer any option to chose default linker which might not be
8 gold linker. Its better to pass this control to user instead of auto
9 detecting and deciding.
11 Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/251]
12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 1 file changed, 7 insertions(+)
18 diff --git a/Makefile b/Makefile
19 index 7a969aba..583ae04f 100644
22 @@ -93,6 +93,13 @@ endif
23 #CFLAGS += -Weverything
30 +LDFLAGS += -fuse-ld=gold
35 # SunOS requires special grep for -e support