> > If you want to use a different linker, then set the variable LD to that linker.
>
> I believe this is what LLVM=1 does. Start a compile with LVM=1 set
> ld.lld, which is part of ldd package, isn't found.
You might try -fuse-ld=lld. From https://lld.llvm.org/:
If you don’t want to change the system setting,
you can use clang’s -fuse-ld option. In this way,
you want to set -fuse-ld=lld to LDFLAGS when
building your programs.
Jeff