summaryrefslogtreecommitdiff
path: root/Modules/Platform/Android-GNU-CXX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Android-GNU-CXX.cmake')
-rw-r--r--Modules/Platform/Android-GNU-CXX.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Android-GNU-CXX.cmake b/Modules/Platform/Android-GNU-CXX.cmake
index 41279d1f7..d30d0ff4e 100644
--- a/Modules/Platform/Android-GNU-CXX.cmake
+++ b/Modules/Platform/Android-GNU-CXX.cmake
@@ -1,2 +1,5 @@
include(Platform/Android-GNU)
__android_compiler_gnu(CXX)
+if(_ANDROID_STL_NOSTDLIBXX)
+ string(APPEND CMAKE_CXX_STANDARD_LIBRARIES " -nodefaultlibs -lgcc -lc -lm -ldl")
+endif()