From c5e669ff768857df3cfab774318938ddfc254b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 13 May 2025 01:46:37 +0200 Subject: [PATCH] compiler: Link libc by default when targeting NetBSD. We don't yet have a direct syscall layer in std.os.netbsd. --- src/Compilation/Config.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig index 581f1eb624..1251552086 100644 --- a/src/Compilation/Config.zig +++ b/src/Compilation/Config.zig @@ -339,6 +339,7 @@ pub fn resolve(options: Options) ResolveError!Config { // These targets don't require libc, but we don't yet have a syscall layer for them, // so we default to linking libc for now. .freebsd, + .netbsd, => break :b true, else => {}, }