Is it possible to provide brief instructions to build XLD from source? It does not really work to just run xcodebuild with the Xcode project file or run that for every subproject, since some source files are missing or not being compiled, and eventually the build fails to link, not finding what it needs.
After some hacking around and fixing some issues, I am at this (log in attachment).
There is no reference at the moment, AFAIK, since MacPorts, Homebrew and Nix all install pre-compiled app.
https://github.com/NixOS/nixpkgs/issues/482898