mirror of
https://github.com/ziglang/zig.git
synced 2025-02-16 09:30:17 +00:00
Add a build issue on Arch Linux, where linking c_nonshared is necessary
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.
|
||||
|
Loading…
Reference in New Issue
Block a user