aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-10-18 23:37:47 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-10-18 23:37:47 -0700
commitae2cd5fe263e9d8ddd5719b4795f9cd39b5c0324 (patch)
tree49058ce872193ded1dc4a3a37fe4c5295f1f18f9 /lib/std
parent470d887d801a982e4cd7ecfc5b0e736d92e8b414 (diff)
downloadzig-ae2cd5fe263e9d8ddd5719b4795f9cd39b5c0324.tar.gz
zig-ae2cd5fe263e9d8ddd5719b4795f9cd39b5c0324.zip
Revert "Never implicitly add rpaths for each lib dir, add NixOS libdir to rpath"
This reverts commit d7b73af8f65bb891c8700ed47777144bb6f35fe1. I did not look at this closely enough. This is incorrect; it should not implicitly add rpaths for every library, and it should not disable the nice default of each_lib_path when compiling for the native OS. See #16062 where we are working on a follow-up improvement to this.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/zig/system/NativePaths.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/std/zig/system/NativePaths.zig b/lib/std/zig/system/NativePaths.zig
index af3243fc10..833d698d42 100644
--- a/lib/std/zig/system/NativePaths.zig
+++ b/lib/std/zig/system/NativePaths.zig
@@ -61,7 +61,6 @@ pub fn detect(arena: Allocator, native_info: NativeTargetInfo) !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;