From 711aba6db2c41bab476bd34e878af6a37a7f5559 Mon Sep 17 00:00:00 2001 From: Jeffrey Crowell Date: Fri, 8 Jul 2022 01:56:04 -0400 Subject: [PATCH] allow setting LD --- soh/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/Makefile b/soh/Makefile index 14bb46827b8..dfaf8106b68 100644 --- a/soh/Makefile +++ b/soh/Makefile @@ -1,6 +1,6 @@ CXX ?= g++ CC ?= gcc -LD := lld +LD ?= lld AR := ar FORMAT := clang-format-11 ZAPD := ../ZAPDTR/ZAPD.out @@ -210,7 +210,7 @@ build/%.o: %.c $(TARGET): $(LIBULTRASHIP) $(TARGET): $(O_FILES) - $(CXX) $^ -o $@ $(LDFLAGS) $(LDDIRS) $(LDLIBS) + $(CXX) $^ -o $@ $(LDFLAGS) -fuse-ld=$(LD) $(LDDIRS) $(LDLIBS) -include $(D_FILES)