haiku: fix linking issues

This commit is contained in:
Jacob Young
2024-04-07 21:19:12 -04:00
parent 0c83fa2fd0
commit fcdb7027e9
4 changed files with 22 additions and 2 deletions

View File

@@ -105,6 +105,13 @@ pub fn detect(arena: Allocator, native_target: std.Target) !NativePaths {
return self;
}
if (builtin.os.tag == .haiku) {
try self.addLibDir("/system/non-packaged/lib");
try self.addLibDir("/system/develop/lib");
try self.addLibDir("/system/lib");
return self;
}
if (builtin.os.tag != .windows and builtin.os.tag != .wasi) {
const triple = try native_target.linuxTriple(arena);