Skip to content

Commit 8cea9b7

Browse files
chore: support 16 KB page sizes
1 parent 2672e3e commit 8cea9b7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

buildscripts/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ loadarch () {
4848
export native_dir="$PWD/../libmpv/src/main/jniLibs/$prefix_name"
4949
export CC=$cc_triple-clang
5050
export CXX=$cc_triple-clang++
51+
export LDFLAGS="-Wl,-O1,--icf=safe -Wl,-z,max-page-size=16384"
5152
export AR=llvm-ar
5253
export RANLIB=llvm-ranlib
5354
}

libmpv/build.gradle.kts

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ android {
1515
consumerProguardFiles("proguard-rules.pro")
1616
externalNativeBuild {
1717
cmake {
18-
arguments += "-DANDROID_STL=c++_shared"
18+
arguments += listOf(
19+
"-DANDROID_STL=c++_shared",
20+
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
21+
)
1922
cFlags += "-Werror"
2023
cppFlags += "-std=c++11"
2124
}

0 commit comments

Comments
 (0)