Skip to content

Commit 40dfc11

Browse files
committed
Compilation.Config: Default to dynamic linking with Zig-provided FreeBSD libc.
1 parent 99640e3 commit 40dfc11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Compilation/Config.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ pub fn resolve(options: Options) ResolveError!Config {
353353
break :b .static;
354354
}
355355
if (explicitly_exe_or_dyn_lib and link_libc and
356-
(target_util.osRequiresLibC(target) or (target.isGnuLibC() and !options.resolved_target.is_native_abi)))
356+
(target_util.osRequiresLibC(target) or
357+
((target.isGnuLibC() or target.isFreeBSDLibC()) and !options.resolved_target.is_native_abi)))
357358
{
358359
if (options.link_mode == .static) return error.LibCRequiresDynamicLinking;
359360
break :b .dynamic;

0 commit comments

Comments
 (0)