-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable SSL for curl in bazel build environment #2415
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The CMake build has a dependency on OpenSSL. Can we have the same dependency to maintain consistency? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking into the boringssl documentation (https://github.com/google/boringssl) - -- -- There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with @lalitb , I think we should use openssl. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, but gRPC also use boringssl, maybe we can use alias to switch the ssl library. (https://bazel.build/docs/configurable-attributes?#faq-select-bind) |
||
visibility = ["//visibility:public"], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the option
CURL_WITH_MULTI_SSL
for?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI build now fails with:
It looks like curl needs to be built with
USE_OPENSSL
and linked with openssl.Relevant CURL code: