There's a closed pull request on the void-packages repository gcc: add --enable-autolink-libatomic. https://github.com/void-linux/void-packages/pull/36001 Description: First stab at #35992. The hack with the empty libatomics.a is pretty ugly, but required for a cross-build, as we cannot build libatomic in the bootstrap gcc due to autoconf limitations. :(