Skip to content

Commit

Permalink
Add support for 16kB page size in Android 15
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkricensky authored and lambdapioneer committed Sep 6, 2024
1 parent 591814b commit 51a6370
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ add_library(argon2native SHARED ${argon2native_SOURCES})
target_compile_options(argon2native PRIVATE)
target_include_directories(argon2native PUBLIC ${argon2native_DIR})

# Add support for 16kB page size for Android 15.
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")

#
# JNI integration (argon2jni)
#
Expand All @@ -38,3 +41,6 @@ target_compile_options(argon2jni PRIVATE)
target_include_directories(argon2jni PUBLIC ${argon2jni_DIR})

target_link_libraries(argon2jni argon2native)

# Add support for 16kB page size for Android 15.
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")

0 comments on commit 51a6370

Please sign in to comment.