summaryrefslogtreecommitdiff
path: root/monero_libwallet2_api_c/CMakeLists.txt
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-05-23 09:33:14 +0200
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-05-23 09:33:14 +0200
commitf9a6c90c89912bd7b518c89b65babbf9d2fdf930 (patch)
tree821f89cefe4580fd10f4d39b5d057aa2216c771c /monero_libwallet2_api_c/CMakeLists.txt
parentc4b28a6a62388c5ad4004962edb43cadbfba5ddb (diff)
mingw and android fixes
Diffstat (limited to 'monero_libwallet2_api_c/CMakeLists.txt')
-rw-r--r--monero_libwallet2_api_c/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/monero_libwallet2_api_c/CMakeLists.txt b/monero_libwallet2_api_c/CMakeLists.txt
index e9691b7..3efca54 100644
--- a/monero_libwallet2_api_c/CMakeLists.txt
+++ b/monero_libwallet2_api_c/CMakeLists.txt
@@ -336,8 +336,8 @@ endif()
if(${HOST_ABI} STREQUAL "x86_64-w64-mingw32" OR ${HOST_ABI} STREQUAL "i686-w64-mingw32")
set_target_properties(wallet2_api_c PROPERTIES SUFFIX ".dll")
-
set(EXTRA_LIBS_WINDOWS ssp wsock32 ws2_32 iconv-win iphlpapi crypt32 hidapi)
+ target_link_options(wallet2_api_c PRIVATE -static-libgcc -static-libstdc++)
endif()
if(${HOST_ABI} STREQUAL "x86_64-apple-darwin11" OR ${HOST_ABI} STREQUAL "aarch64-apple-darwin11" OR ${HOST_ABI} STREQUAL "host-apple-darwin" OR ${HOST_ABI} STREQUAL "x86_64-host-apple-darwin" OR ${HOST_ABI} STREQUAL "aarch64-host-apple-darwin" OR ${HOST_ABI} STREQUAL "host-apple-ios")