Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dependency to c++ lib when building using libssl of boringssl #552

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ()
Loading