mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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>
9 lines
391 B
CMake
9 lines
391 B
CMake
# <ndk>/sources/cxx-stl/stlport/Android.mk
|
|
set(_ANDROID_STL_RTTI 1)
|
|
set(_ANDROID_STL_EXCEPTIONS 1)
|
|
set(_ANDROID_STL_NOSTDLIBXX 0)
|
|
macro(__android_stl_stlport lang filename)
|
|
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/stlport/stlport" 1)
|
|
__android_stl_lib(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/stlport/libs/${CMAKE_ANDROID_ARCH_ABI}/${filename}" 1)
|
|
endmacro()
|