diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -205,6 +205,12 @@ includes = ["include"], linkopts = select({ "@bazel_tools//src/conditions:windows": [], + "@bazel_tools//src/conditions:freebsd": [ + "-pthread", + "-ldl", + "-lm", + "-Wl,--warn-unresolved-symbols", + ], "//conditions:default": [ "-pthread", "-ldl",