Skip to content

Commit c0f4e43

Browse files
committed
Fixing openssl linking
Signed-off-by: Mike Yoder <myoder@roblox.com>
1 parent 8dfcb34 commit c0f4e43

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

userspace/falco/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,14 @@ if(NOT WIN32 AND NOT EMSCRIPTEN AND NOT MINIMAL_BUILD)
9494
list(APPEND FALCO_DEPENDENCIES curl)
9595
endif()
9696

97-
list(APPEND FALCO_LIBRARIES httplib::httplib "${CURL_LIBRARIES}" "${CARES_LIB}")
97+
if(USE_BUNDLED_OPENSSL)
98+
list(APPEND FALCO_DEPENDENCIES openssl)
99+
endif()
100+
101+
# libcurl (static) and cpp-httplib SSL pull in OpenSSL; falco_engine only links it on Linux.
102+
list(APPEND FALCO_LIBRARIES httplib::httplib "${CURL_LIBRARIES}" "${OPENSSL_LIBRARIES}"
103+
"${CARES_LIB}"
104+
)
98105

99106
target_compile_definitions(falco_application PRIVATE CPPHTTPLIB_OPENSSL_SUPPORT)
100107
endif()

0 commit comments

Comments
 (0)