Skip to content

Commit

Permalink
stage2: fix build on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
jethron committed May 2, 2020
1 parent 27fd030 commit ef92949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ fn configureStage2(b: *Builder, exe: var, ctx: Context) !void {

exe.linkSystemLibrary("pthread");
} else if (exe.target.isFreeBSD()) {
try addCxxKnownPath(b, ctx, exe, "libc++.a", null);
exe.linkSystemLibrary("cxxrt");
exe.linkSystemLibrary("pthread");
} else if (exe.target.isDarwin()) {
if (addCxxKnownPath(b, ctx, exe, "libgcc_eh.a", "")) {
Expand Down

0 comments on commit ef92949

Please sign in to comment.