aboutsummaryrefslogtreecommitdiff
path: root/src/glibc.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-11-19 15:27:17 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-11-27 15:42:39 -0700
commit375bab8460517f5d5ee02c161dc65ff1694132d7 (patch)
tree02e428a21540cb8184f80271ef21b3c0a08a440c /src/glibc.zig
parent12efefeba5a8128e0a79b4b04fad0d538c382e47 (diff)
downloadzig-375bab8460517f5d5ee02c161dc65ff1694132d7.tar.gz
zig-375bab8460517f5d5ee02c161dc65ff1694132d7.zip
stage2 elf: refactor override_soname to soname
Diffstat (limited to 'src/glibc.zig')
-rw-r--r--src/glibc.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glibc.zig b/src/glibc.zig
index 108aeb6f77..9a00144d7d 100644
--- a/src/glibc.zig
+++ b/src/glibc.zig
@@ -917,7 +917,7 @@ fn buildSharedLib(
};
const version: std.builtin.Version = .{ .major = lib.sover, .minor = 0, .patch = 0 };
const ld_basename = path.basename(comp.getTarget().standardDynamicLinkerPath().get().?);
- const override_soname = if (mem.eql(u8, lib.name, "ld")) ld_basename else null;
+ const soname = if (mem.eql(u8, lib.name, "ld")) ld_basename else null;
const map_file_path = try path.join(arena, &[_][]const u8{ bin_directory.path.?, all_map_basename });
const c_source_files = [1]Compilation.CSourceFile{
.{
@@ -955,7 +955,7 @@ fn buildSharedLib(
.clang_passthrough_mode = comp.clang_passthrough_mode,
.version = version,
.version_script = map_file_path,
- .override_soname = override_soname,
+ .soname = soname,
.c_source_files = &c_source_files,
.is_compiler_rt_or_libc = true,
});