Some applications call directly into lld's component libraries, but not every distribution wants to ship them.
They can ship this stub instead that provides the same interface by invoking the lld
binaries.
Before building, one needs to download lld/include/lld/Common/Driver.h of the correct version. That's the interface being implemented here.
As local dependencies, a C++ compiler with standard library and an LLVM development package should be enough.
The build uses make
and is controlled by environment variables CXX
, CXXFLAGS
and LDFLAGS
.
There are two targets: liblld-stub.so
and liblld-stub.a
.