Re: LLVM Linker
* Jeffrey Walton <noloader@gmail.com> [2021-10-16 10:53 -0400]:
> On Sat, Oct 16, 2021 at 10:16 AM Elimar Riesebieter <riesebie@lxtec.de> wrote:
> >
> > does somebody knows why lld isn't available for powerpc?
[...]
> You can check the builtin makefile rules with '-p' option:
>
> $ make -p | grep -E 'LD|LINK'
> ...
> LINK.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
> LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
> LINK.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
> LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
> LD = ld
> LINK.r = $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)
> LINK.C = $(LINK.cc)
> LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)
> LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
> LINK.s = $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH)
> LINK.cpp = $(LINK.cc)
> ...
>
> 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.
Elimar
--
From The Collaborative International Dictionary of English v.0.48 [gcide]:
.
arsehole \arse"hole`\ ([aum]rs"h[=o]l`), n.
1. execretory opening at the end of the alimentary canal.
Reply to: