Skip to content
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

libcurl: Restore openssl by default on Linux/Android #5970

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/l/libcurl/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ package("libcurl")

-- we init all configurations in on_load, because package("curl") need it.
on_load(function (package)
if package:is_plat("linux", "android", "cross") then
-- if no TLS backend has been enabled nor disabled, enable openssl by default
if package:config("openssl") == nil and package:config("openssl3") == nil and package:config("mbedtls") == nil then
package:config_set("openssl", true)
end
end

assert(not (package:config("openssl") and package:config("openssl3")), "OpenSSL and OpenSSL-3 cannot be enabled at the same time.")

if package:is_plat("macosx", "iphoneos") then
Expand Down
Loading