| ... | ... | @@ -293,11 +293,17 @@ fn configureStage2(b: *Builder, exe: var, ctx: Context) !void { |
| 293 | 293 | try addCxxKnownPath(b, ctx, exe, "libstdc++.a", |
| 294 | 294 | \\Unable to determine path to libstdc++.a |
| 295 | 295 | \\On Fedora, install libstdc++-static and try again. |
| 296 | | \\ |
| 297 | 296 | ); |
| 298 | 297 | |
| 299 | 298 | exe.linkSystemLibrary("pthread"); |
| 300 | | } else if (exe.target.isDarwin() or exe.target.isFreeBSD()) { |
| 299 | } else if (exe.target.isFreeBSD()) { |
| 300 | try addCxxKnownPath(b, ctx, exe, "libc++.a", null); |
| 301 | exe.linkSystemLibrary("pthread"); |
| 302 | // TODO LLD cannot perform this link. |
| 303 | // See https://github.com/ziglang/zig/issues/1535 |
| 304 | exe.enableSystemLinkerHack(); |
| 305 | } |
| 306 | else if (exe.target.isDarwin()) { |
| 301 | 307 | if (addCxxKnownPath(b, ctx, exe, "libgcc_eh.a", "")) { |
| 302 | 308 | // Compiler is GCC. |
| 303 | 309 | try addCxxKnownPath(b, ctx, exe, "libstdc++.a", null); |