Commit 672d045e authored by Simon Morlat's avatar Simon Morlat

Exclude libgcc.a and libatomic.a, as in NDK16 cmake toolchain.

parent 213000a1
......@@ -42,6 +42,9 @@ if(CMAKE_ANDROID_NDK_VERSION VERSION_LESS 16)
set(CMAKE_ANDROID_STL_TYPE "gnustl_shared")
else()
set(CMAKE_ANDROID_STL_TYPE "c++_shared")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a ${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a ${CMAKE_MODULE_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a ${CMAKE_EXE_LINKER_FLAGS}")
endif()
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "${CMAKE_INSTALL_PREFIX}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment