| ... | ... | @@ -478,8 +478,12 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 478 | 478 | { |
| 479 | 479 | break :dl true; |
| 480 | 480 | } |
| 481 | | if (options.system_libs.len != 0) |
| 482 | | break :dl true; |
| 481 | if (options.system_libs.len != 0) { |
| 482 | // when creating a executable that links to system libraries, |
| 483 | // we require dynamic linking, but we must not link static libraries |
| 484 | // or object files dynamically! |
| 485 | break :dl (options.output_mode == .Exe); |
| 486 | } |
| 483 | 487 | |
| 484 | 488 | break :dl false; |
| 485 | 489 | }; |