From ef929498d54c2a4ba791794f690a9400ee9b0970 Mon Sep 17 00:00:00 2001 From: Jethro Nederhof Date: Tue, 7 Apr 2020 19:34:40 +1000 Subject: [PATCH] stage2: fix build on FreeBSD --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index ab1d985b748c..4cae48ae9b70 100644 --- a/build.zig +++ b/build.zig @@ -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", "")) {