diff --git a/bazel/openssl.BUILD b/bazel/openssl.BUILD index 37442510..15210084 100644 --- a/bazel/openssl.BUILD +++ b/bazel/openssl.BUILD @@ -59,6 +59,7 @@ yacl_configure_make( }), lib_name = "openssl", lib_source = ":all_srcs", + linkopts = ["-ldl"], # Note that for Linux builds, libssl must come before libcrypto on the linker command-line. # As such, libssl must be listed before libcrypto out_static_libs = [