There is a new pull request by leahneukirchen against master on the void-packages repository https://github.com/leahneukirchen/void-packages gcc-atomics https://github.com/void-linux/void-packages/pull/36001 gcc: add --enable-autolink-libatomic. 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. :( A patch file from https://github.com/void-linux/void-packages/pull/36001.patch is attached