summaryrefslogtreecommitdiff
path: root/monero_libwallet2_api_c/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'monero_libwallet2_api_c/CMakeLists.txt')
-rw-r--r--monero_libwallet2_api_c/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/monero_libwallet2_api_c/CMakeLists.txt b/monero_libwallet2_api_c/CMakeLists.txt
index c7fc119..724c20d 100644
--- a/monero_libwallet2_api_c/CMakeLists.txt
+++ b/monero_libwallet2_api_c/CMakeLists.txt
@@ -27,6 +27,12 @@ if (${HOST_ABI} STREQUAL "host-apple-darwin" OR
endif()
endif()
+if(${HOST_ABI} STREQUAL "x86_64-linux-android" OR
+ ${HOST_ABI} STREQUAL "i686-linux-android" OR
+ ${HOST_ABI} STREQUAL "aarch64-linux-android" OR
+ ${HOST_ABI} STREQUAL "armv7a-linux-androideabi")
+ add_link_options(-stdlib=libc++ -static-libstdc++)
+endif()
add_library( wallet2_api_c
SHARED