summaryrefslogtreecommitdiff
path: root/monero_libwallet2_api_c/CMakeLists.txt
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-06-29 06:40:59 +0000
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-06-29 06:40:59 +0000
commit716106b3a60578efacba47dcd29252b059848c63 (patch)
tree0341ebac7af54d7fd3e787b12ddc74e5c112cfd2 /monero_libwallet2_api_c/CMakeLists.txt
parentd145acd8bd75abe341a0dd24c685dd697e72aeae (diff)
ok, I'm honestly tired of working on android, why couldn't the documentation state what I need to do, instead of sharing things that do not really work, forcing me to go and see cmake source to figure out what do I need to do.
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