Skip to content

Commit

Permalink
gradle: add max-page-size 16384 (#1213)
Browse files Browse the repository at this point in the history
This uses Gradle 7, so must specify page size exactly, rather
than being able to use the newer options.
    
This may not update the APK alignment, but you can always run
zipalign to realign an unaligned APK. Or, if you pull the .so
directly it will work.
  • Loading branch information
smore-lore authored Oct 14, 2024
1 parent 4c4119d commit e57bf15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ if (androidSdkInstalled) {
arguments '-DANDROID=True',
'-DANDROID_STL=c++_static',
"-DBORINGSSL_HOME=$boringsslHome",
"-DCMAKE_CXX_STANDARD=17"
"-DCMAKE_CXX_STANDARD=17",
'-DCMAKE_SHARED_LINKER_FLAGS=-z max-page-size=16384'
cFlags '-fvisibility=hidden',
'-DBORINGSSL_SHARED_LIBRARY',
'-DBORINGSSL_IMPLEMENTATION',
Expand Down

0 comments on commit e57bf15

Please sign in to comment.