allow setting LD

This commit is contained in:
Jeffrey Crowell 2022-07-08 01:56:04 -04:00
parent 205f815cd0
commit 711aba6db2
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
CXX ?= g++ CXX ?= g++
CC ?= gcc CC ?= gcc
LD := lld LD ?= lld
AR := ar AR := ar
FORMAT := clang-format-11 FORMAT := clang-format-11
ZAPD := ../ZAPDTR/ZAPD.out ZAPD := ../ZAPDTR/ZAPD.out
@ -210,7 +210,7 @@ build/%.o: %.c
$(TARGET): $(LIBULTRASHIP) $(TARGET): $(LIBULTRASHIP)
$(TARGET): $(O_FILES) $(TARGET): $(O_FILES)
$(CXX) $^ -o $@ $(LDFLAGS) $(LDDIRS) $(LDLIBS) $(CXX) $^ -o $@ $(LDFLAGS) -fuse-ld=$(LD) $(LDDIRS) $(LDLIBS)
-include $(D_FILES) -include $(D_FILES)