Skip to content

Commit

Permalink
patch for curl fix linking issue with librt when using libressl
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl committed Oct 22, 2020
1 parent 47d7b89 commit fbf0022
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions third_party/curl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ ExternalProject_add(
curl
URL https://github.com/curl/curl/archive/curl-7_70_0.zip
PREFIX curl
PATCH_COMMAND patch CMakeLists.txt < ${PROJECT_SOURCE_DIR}/curl.patch
CMAKE_ARGS "${CMAKE_ARGS}"
)
12 changes: 12 additions & 0 deletions third_party/curl/curl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- CMakeLists.txt 2020-10-22 13:52:47.849069912 -0800
+++ CMakeLists.txt 2020-10-22 13:52:36.053060360 -0800
@@ -371,6 +371,9 @@
set(SSL_ENABLED ON)
set(USE_OPENSSL ON)

+ list(APPEND OPENSSL_LIBRARIES rt)
+ list(APPEND CURL_LIBS rt)
+
# Depend on OpenSSL via imported targets if supported by the running
# version of CMake. This allows our dependents to get our dependencies
# transitively.

0 comments on commit fbf0022

Please sign in to comment.