From 716106b3a60578efacba47dcd29252b059848c63 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sat, 29 Jun 2024 06:40:59 +0000 Subject: 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. --- monero_libwallet2_api_c/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'monero_libwallet2_api_c') 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 -- cgit v1.2.3