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 @@ -206,6 +206,12 @@ includes = ["include"], linkopts = select({ "@bazel_tools//src/conditions:windows": [], + "@bazel_tools//src/conditions:freebsd": [ + "-pthread", + "-lexecinfo", + "-ldl", + "-lm", + ], "//conditions:default": [ "-pthread", "-ldl",