Skip to content
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
8 changes: 8 additions & 0 deletions cmake/projects/OpenSSL/schemes/url_sha1_openssl.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ if(ANDROID)
# * android-ndk-r17-api-24-arm64-v8a-clang-libcxx14
# * android-ndk-r18-api-24-arm64-v8a-clang-libcxx14
list(APPEND configure_opts "-latomic ${CMAKE_EXE_LINKER_FLAGS}")

# On Clang-based Android NDK toolchains, explicitly linking libunwind is
# unnecessary and results in malformed flags like "-l-l:libunwind.a", which
# break the build. This block strips such flags from configure options to
# ensure successful compilation.
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
string(REPLACE "-l-l:libunwind.a" "" configure_opts "${configure_opts}")
endif()
elseif(RASPBERRY_PI)
set(configure_opts "linux-generic32")
elseif(OPENWRT)
Expand Down
Loading