mirror of
https://github.com/reactos/CMake.git
synced 2024-12-05 18:27:23 +00:00
843d55de29
The chosen STL libraries are already linked explicitly so we shouldn't let the compiler add its implicit `-lstdc++` (the default) when invoking the linker. Fixes: #17863 NDK-Issue: https://github.com/android-ndk/ndk/issues/105 Inspired-by: Tom Hughes <tomtheengineer@gmail.com>
6 lines
177 B
CMake
6 lines
177 B
CMake
include(Platform/Android-GNU)
|
|
__android_compiler_gnu(CXX)
|
|
if(_ANDROID_STL_NOSTDLIBXX)
|
|
string(APPEND CMAKE_CXX_STANDARD_LIBRARIES " -nodefaultlibs -lgcc -lc -lm -ldl")
|
|
endif()
|