commit e517d5a51ec37e6f89fdb142c7d9674abb12cc72 (tree)
parent 4debd4338ce2c27a0dd6127ce5736ca56538214c
Author: Jan200101 <sentrycraft123@gmail.com>
Date: Thu, 26 Oct 2023 21:39:40 +0200
std.zig.system.NativePaths: add NixOS lib dirs to the rpath
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/std/zig/system/NativePaths.zig b/lib/std/zig/system/NativePaths.zig
@@ -59,6 +59,7 @@ pub fn detect(arena: Allocator, native_target: std.Target) !NativePaths {
} else if (word.len > 2 and word[0] == '-' and word[1] == 'L') {
const lib_path = word[2..];
try self.addLibDir(lib_path);
+ try self.addRPath(lib_path);
} else {
try self.addWarningFmt("Unrecognized C flag from NIX_LDFLAGS: {s}", .{word});
break;