Skip to content

Commit

Permalink
libssl of boringssl (commit 52a2c00; Oct 31 2024) seems to require ex…
Browse files Browse the repository at this point in the history
…plicit dependency on C++ lib
  • Loading branch information
kazuho committed Nov 22, 2024
1 parent bc43bf8 commit d128efc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmake/boringssl-adjust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ FUNCTION (BORINGSSL_ADJUST)
ENDIF ()
LIST(APPEND OPENSSL_CRYPTO_LIBRARIES "${LIBDECREPIT_PATH}")
SET(OPENSSL_CRYPTO_LIBRARIES "${OPENSSL_CRYPTO_LIBRARIES}" PARENT_SCOPE)
LIST(APPEND OPENSSL_LIBRARIES "${LIBDECREPIT_PATH}")
IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
SET(CXXLIB "-lc++")
ELSEIF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
SET(CXXLIB "-lstdc++")
ELSE ()
MESSAGE(FATAL_ERROR "do not know how to declare dependency on C++ stdlib even though libssl.a depends on it")
ENDIF ()
LIST(APPEND OPENSSL_LIBRARIES "${LIBDECREPIT_PATH}" "${CXXLIB}")
SET(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES}" PARENT_SCOPE)
ENDIF ()
ENDFUNCTION ()

0 comments on commit d128efc

Please sign in to comment.