libcurl: Fix missing dl link (#3119)

* libcurl: Fix missing dl syslinks

See #3118

* Update xmake.lua
pull/3130/head
Jérôme Leclercq 1 year ago committed by GitHub
parent 4493a9ef13
commit f811f2d7b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/l/libcurl/xmake.lua

@ -109,6 +109,10 @@ package("libcurl")
if package:is_plat("mingw") and version:le("7.85.0") then
io.replace("src/CMakeLists.txt", 'COMMAND ${CMAKE_COMMAND} -E echo "/* built-in manual is disabled, blank function */" > tool_hugehelp.c', "", {plain = true})
end
if package:is_plat("linux", "cross") then
io.replace("CMakeLists.txt", "list(APPEND CURL_LIBS OpenSSL::SSL OpenSSL::Crypto)", "list(APPEND CURL_LIBS OpenSSL::SSL OpenSSL::Crypto dl)", {plain = true})
io.replace("CMakeLists.txt", "list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})", "list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES} dl)", {plain = true})
end
import("package.tools.cmake").install(package, configs, opt)
end)

Loading…
Cancel
Save