Compiled on RPI3B with 6.1.25-piCore-v7 Source Code: https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/lld-15.0.7.src.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/libunwind-15.0.7.src.tar.xz https://anduin.linuxfromscratch.org/BLFS/llvm/llvm-cmake-15.0.7.src.tar.xz Dependencies: clang cmake git llvm15-dev ninja python3.11 Commands: sudo busybox cp /tmp/tcloop/llvm15-dev/usr/local/bin/llvm-config /usr/local/bin/llvm-config tar -xf lld-15.0.7.src.tar.xz tar -xf libunwind-15.0.7.src.tar.xz tar -xf llvm-cmake-15.0.7.src.tar.xz cp -r libunwind-15.0.7.src/include/mach-o lld-15.0.7.src/MachO/ mv cmake-15.0.7.src/ cmake cd lld-15.0.7.src/ && mkdir build && cd build # -Os is passed by -DCMAKE_BUILD_TYPE=MinSizeRel # -Wno-dev tells CMAKE to ignore policies unset time cmake -LAH -Wno-dev -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_C_FLAGS="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -pipe" \ -DCMAKE_CXX_FLAGS="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -pipe" \ -DLLVM_ENABLE_PROJECT=lld -DCMAKE_INSTALL_PREFIX=/usr/local -G Ninja .. time ninja -j4 real 38m 50.02s user 1h 13m 04s sys 5m 43.41s DESTDIR=/tmp/packing-lld ninja install llvm-strip --strip-unneeded /tmp/packing-lld/usr/local/bin/lld llvm-strip --strip-debug /tmp/packing-lld/usr/local/lib/*.a