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", + "-lexecinfo", + "-ldl", + "-lm", + ], "//conditions:default": [ "-pthread", "-ldl",