Skip to content

Commit

Permalink
Building 16 kb page compatible shared libraries of FFmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
Javernaut committed Nov 25, 2024
1 parent 5379e5e commit 17d4a27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ffmpeg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ done
DEP_CFLAGS="-I${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/include"
DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"

# Android 15 with 16 kb page size support
# https://developer.android.com/guide/practices/page-sizes#compile-r27
EXTRA_LDFLAGS="-Wl,-z,max-page-size=16384 $DEP_LD_FLAGS"

./configure \
--prefix=${BUILD_DIR_FFMPEG}/${ANDROID_ABI} \
--enable-cross-compile \
Expand All @@ -40,7 +44,7 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
--ranlib=${FAM_RANLIB} \
--strip=${FAM_STRIP} \
--extra-cflags="-O3 -fPIC $DEP_CFLAGS" \
--extra-ldflags="$DEP_LD_FLAGS" \
--extra-ldflags="$EXTRA_LDFLAGS" \
--enable-shared \
--disable-static \
--disable-vulkan \
Expand Down

0 comments on commit 17d4a27

Please sign in to comment.