Add a build issue on Arch Linux, where linking c_nonshared is necessary

Manlio Perillo 2022-05-08 14:58:04 +02:00
parent a2001c2752
commit 805451f7bb

@ -30,6 +30,14 @@ Then Zig was not able to find the LLVM libs. Add the path to the config header o
./stage2/bin/zig build -p stage3 -Denable-llvm -Dconfig_h=build/config.h
```
If you get this error (confirmed on Arch Linux):
```
ld.lld: error: undefined symbol: __libc_single_threaded
```
Then it is necessary to link the `c_nonshared` library. See [#11137](/ziglang/zig/issues/11137).
## Arch Linux, Gentoo, Fedora 32+
The Clang packages in these distributions do not contain static libraries, which Zig tries to use by default.