Skip to content

Commit 711aba6

Browse files
committed
allow setting LD
1 parent 205f815 commit 711aba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soh/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CXX ?= g++
22
CC ?= gcc
3-
LD := lld
3+
LD ?= lld
44
AR := ar
55
FORMAT := clang-format-11
66
ZAPD := ../ZAPDTR/ZAPD.out
@@ -210,7 +210,7 @@ build/%.o: %.c
210210
$(TARGET): $(LIBULTRASHIP)
211211

212212
$(TARGET): $(O_FILES)
213-
$(CXX) $^ -o $@ $(LDFLAGS) $(LDDIRS) $(LDLIBS)
213+
$(CXX) $^ -o $@ $(LDFLAGS) -fuse-ld=$(LD) $(LDDIRS) $(LDLIBS)
214214

215215
-include $(D_FILES)
216216

0 commit comments

Comments
 (0)