Skip to content

Commit 17d4a27

Browse files
committed
Building 16 kb page compatible shared libraries of FFmpeg
1 parent 5379e5e commit 17d4a27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/ffmpeg/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ done
2525
DEP_CFLAGS="-I${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/include"
2626
DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
2727

28+
# Android 15 with 16 kb page size support
29+
# https://developer.android.com/guide/practices/page-sizes#compile-r27
30+
EXTRA_LDFLAGS="-Wl,-z,max-page-size=16384 $DEP_LD_FLAGS"
31+
2832
./configure \
2933
--prefix=${BUILD_DIR_FFMPEG}/${ANDROID_ABI} \
3034
--enable-cross-compile \
@@ -40,7 +44,7 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
4044
--ranlib=${FAM_RANLIB} \
4145
--strip=${FAM_STRIP} \
4246
--extra-cflags="-O3 -fPIC $DEP_CFLAGS" \
43-
--extra-ldflags="$DEP_LD_FLAGS" \
47+
--extra-ldflags="$EXTRA_LDFLAGS" \
4448
--enable-shared \
4549
--disable-static \
4650
--disable-vulkan \

0 commit comments

Comments
 (0)