aboutsummaryrefslogtreecommitdiff
path: root/src/glibc.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-12-11 23:02:35 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-12-13 00:40:35 +0100
commit1d8f33ca98493d63c509e0a23b8dc512f4d7b79f (patch)
treef81c326ceef3cb9a010f85af5092274d908381ad /src/glibc.zig
parent078a64f8d9b50ad99afe12ba3038afc3e68f507c (diff)
downloadzig-1d8f33ca98493d63c509e0a23b8dc512f4d7b79f.tar.gz
zig-1d8f33ca98493d63c509e0a23b8dc512f4d7b79f.zip
stage2: link musl dynamically by default if native
If targeting the native OS and the system libc is musl, link against it dynamically by default.
Diffstat (limited to 'src/glibc.zig')
-rw-r--r--src/glibc.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glibc.zig b/src/glibc.zig
index 6da397d4f5..4f092efb09 100644
--- a/src/glibc.zig
+++ b/src/glibc.zig
@@ -945,6 +945,7 @@ fn buildSharedLib(
.emit_h = null,
.strip = comp.bin_file.options.strip,
.is_native_os = false,
+ .is_native_abi = false,
.self_exe_path = comp.self_exe_path,
.verbose_cc = comp.verbose_cc,
.verbose_link = comp.bin_file.options.verbose_link,