We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99640e3 commit 40dfc11Copy full SHA for 40dfc11
src/Compilation/Config.zig
@@ -353,7 +353,8 @@ pub fn resolve(options: Options) ResolveError!Config {
353
break :b .static;
354
}
355
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)))
+ (target_util.osRequiresLibC(target) or
357
+ ((target.isGnuLibC() or target.isFreeBSDLibC()) and !options.resolved_target.is_native_abi)))
358
{
359
if (options.link_mode == .static) return error.LibCRequiresDynamicLinking;
360
break :b .dynamic;
0 commit comments