haiku: fix linking issues
This commit is contained in:
@@ -2740,6 +2740,13 @@ pub fn is_libc_lib_name(target: std.Target, name: []const u8) bool {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (target.os.tag == .haiku) {
|
||||
if (eqlIgnoreCase(ignore_case, name, "root"))
|
||||
return true;
|
||||
if (eqlIgnoreCase(ignore_case, name, "network"))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user