How to build the 5.7.1 toolchain in swift.org release-like archive layout on Ubuntu 20.04 or 22.04

Right, so that problem was down to flto=auto and -ffat-lto-objects which are set by default on Jammy. Manipulating them with dpkg-buildflags in debian/rules sorted that out.

3 Likes