Skip to content

Commit

Permalink
cmake: don`t use linker map on Android (#144)
Browse files Browse the repository at this point in the history
The linker map causes issues on Android NDK builds (e.g., llvm lld not able to find symbols)
  • Loading branch information
MariusBgm authored Nov 12, 2024
1 parent 783024a commit 2cd6ffe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SilKit/source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ elseif(UNIX AND NOT APPLE)
PRIVATE -Wl,--build-id=sha1)
endif()
endif()
target_link_options(SilKit PRIVATE "LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/silkit.map")
if(NOT (CMAKE_SYSTEM_NAME MATCHES Android))
target_link_options(SilKit PRIVATE "LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/silkit.map")
endif()
endif()

if ((CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang) AND NOT SILKIT_USE_SYSTEM_LIBRARIES)
Expand Down

0 comments on commit 2cd6ffe

Please sign in to comment.