mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Depending on system libs only enforces libraries to require dynamic linking, but neither static libs nor object files.
This commit is contained in:
parent
33bc1ebe37
commit
dce74c31cc
@ -478,8 +478,12 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
|
||||
{
|
||||
break :dl true;
|
||||
}
|
||||
if (options.system_libs.len != 0)
|
||||
break :dl true;
|
||||
if (options.system_libs.len != 0) {
|
||||
// when creating a executable that links to system libraries,
|
||||
// we require dynamic linking, but we must not link static libraries
|
||||
// or object files dynamically!
|
||||
break :dl (options.output_mode == .Exe);
|
||||
}
|
||||
|
||||
break :dl false;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user