From 004405c9156541735e22f1a3b34fd1b6d0e324dc Mon Sep 17 00:00:00 2001 From: SF-Zhou Date: Tue, 28 Nov 2023 15:27:38 +0800 Subject: [PATCH 1/2] enable SSL for curl in bazel build environment --- bazel/curl.BUILD | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bazel/curl.BUILD b/bazel/curl.BUILD index f0418a62dd..4d4942f7c2 100644 --- a/bazel/curl.BUILD +++ b/bazel/curl.BUILD @@ -34,6 +34,8 @@ cc_library( ]), copts = CURL_COPTS + [ "-DOS=\"os\"", + "-DCURL_WITH_MULTI_SSL", + "-DUSE_SSL", ], defines = ["CURL_STATICLIB"], includes = [ @@ -55,5 +57,9 @@ cc_library( "-lpthread", ], }), + deps = [ + "@boringssl//:crypto", + "@boringssl//:ssl", + ], visibility = ["//visibility:public"], ) From 6521fe9284d5d4aa142914f66d5c8f98eae6880d Mon Sep 17 00:00:00 2001 From: SF-Zhou Date: Thu, 30 Nov 2023 10:56:19 +0800 Subject: [PATCH 2/2] Remove useless copts --- bazel/curl.BUILD | 1 - 1 file changed, 1 deletion(-) diff --git a/bazel/curl.BUILD b/bazel/curl.BUILD index 4d4942f7c2..e70509034d 100644 --- a/bazel/curl.BUILD +++ b/bazel/curl.BUILD @@ -34,7 +34,6 @@ cc_library( ]), copts = CURL_COPTS + [ "-DOS=\"os\"", - "-DCURL_WITH_MULTI_SSL", "-DUSE_SSL", ], defines = ["CURL_STATICLIB"],