zlacker

[return to "Zig Libc"]
1. tiffan+8M1[view] [source] 2026-02-03 02:08:17
>>ingve+(OP)
Does this mean long term Zig won’t run on OpenBSD?

Because doesn’t OpenBSD block direct syscalls & force everything to go through libc.

>>38039689

◧◩
2. AndyKe+9O1[view] [source] 2026-02-03 02:21:48
>>tiffan+8M1
This affects static libc only. If you pass -dynamic -lc then the libc functions are provided by the target system. Some systems only support dynamic libc, such as macOS. I think OpenBSD actually does support static libc though.
◧◩◪
3. winter+XV1[view] [source] 2026-02-03 03:24:33
>>AndyKe+9O1
> I think OpenBSD actually does support static libc though.

How does that work, with syscalls being unable to be called except from the system’s libc? I’d be a bit surprised if any binary’s embedded libc would support this model.

◧◩◪◨
4. AndyKe+712[view] [source] 2026-02-03 04:09:40
>>winter+XV1
Sorry I got mixed up with FreeBSD: https://codeberg.org/ziglang/zig/issues/30981 (original github link has more information)
[go to top]