Skip to content

Commit

Permalink
libcurl: Fix missing dl link (#3119)
Browse files Browse the repository at this point in the history
* libcurl: Fix missing dl syslinks

See #3118

* Update xmake.lua
  • Loading branch information
SirLynix authored Jan 19, 2024
1 parent 4493a9e commit f811f2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/l/libcurl/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f811f2d

Please sign in to comment.