| ... | ... | @@ -184,7 +184,10 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Module { |
| 184 | 184 | return error.PieRequiresPic; |
| 185 | 185 | break :b true; |
| 186 | 186 | } |
| 187 | | if (options.global.link_mode == .dynamic and target_util.requiresPicForDynamicLink(target)) { |
| 187 | if (options.global.output_mode == .Lib and |
| 188 | options.global.link_mode == .dynamic and |
| 189 | target_util.requiresPicForDynamicLink(target)) |
| 190 | { |
| 188 | 191 | if (options.inherited.pic == false) |
| 189 | 192 | return error.DynamicLinkingRequiresPic; |
| 190 | 193 | break :b true; |