summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2025-09-09 16:27:28 +0000
committercyan <cyjan@mrcyjanek.net>2025-09-10 10:42:03 -0400
commit92564e0ce703ea591c0c2b64e8ee720bf6b52c1f (patch)
treef97366531fd40e1e062a742f825d91b2fc39437b
parent5225c47e5033d46bfd60e612e87b24c562f67efa (diff)
fix: prepare for 16KB pages
-rw-r--r--.github/workflows/full_check.yaml6
-rw-r--r--monero_libwallet2_api_c/CMakeLists.txt8
2 files changed, 12 insertions, 2 deletions
diff --git a/.github/workflows/full_check.yaml b/.github/workflows/full_check.yaml
index bca32d6..472fc51 100644
--- a/.github/workflows/full_check.yaml
+++ b/.github/workflows/full_check.yaml
@@ -193,7 +193,8 @@ jobs:
xcode-version: '16.4'
- name: install dependencies
run: |
- brew install ccache binutils pigz autoconf automake libtool pkg-config
+ brew uninstall cmake
+ brew install cmake ccache binutils pigz autoconf automake libtool pkg-config
- name: Patch sources
run: |
git config --global --add safe.directory '*'
@@ -248,7 +249,8 @@ jobs:
xcode-version: '16.4'
- name: install dependencies
run: |
- brew install ccache cmake autoconf automake libtool
+ brew uninstall cmake
+ brew install cmake ccache autoconf automake libtool
- name: Patch sources
run: |
git config --global --add safe.directory '*'
diff --git a/monero_libwallet2_api_c/CMakeLists.txt b/monero_libwallet2_api_c/CMakeLists.txt
index 876d2d4..ed46aba 100644
--- a/monero_libwallet2_api_c/CMakeLists.txt
+++ b/monero_libwallet2_api_c/CMakeLists.txt
@@ -164,6 +164,14 @@ endif()
# ${EXTRA_LIBS_WOWNEROSEED}
# ${EXTRA_LIBS_ANDROID}")
+
+if (${HOST_ABI} STREQUAL "x86_64-w64-mingw32" OR
+ ${HOST_ABI} STREQUAL "i686-w64-mingw32")
+ target_link_options(wallet2_api_c PRIVATE "-Wl,--section-alignment,16384")
+elseif(${HOST_ABI} MATCHES "-linux-")
+ target_link_options(wallet2_api_c PRIVATE "-Wl,-z,max-page-size=16384")
+endif()
+
target_link_libraries( wallet2_api_c
${WALLET_TARGETS}