| ... | @@ -184,7 +184,10 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Module { | ... | @@ -184,7 +184,10 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Module { |
| 184 | return error.PieRequiresPic; | 184 | return error.PieRequiresPic; |
| 185 | break :b true; | 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 | if (options.inherited.pic == false) | 191 | if (options.inherited.pic == false) |
| 189 | return error.DynamicLinkingRequiresPic; | 192 | return error.DynamicLinkingRequiresPic; |
| 190 | break :b true; | 193 | break :b true; |