Skip to content

Commit ed73431

Browse files
committed
Merge tag 'v2.12' into media-file
2 parents 52b8b41 + 69bc3f2 commit ed73431

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

scripts/ffmpeg/build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ done
2828
DEP_CFLAGS="-I${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/include"
2929
DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
3030

31-
# Everything that goes below ${EXTRA_BUILD_CONFIGURATION_FLAGS} is my project-specific.
31+
# Android 15 with 16 kb page size support
32+
# https://developer.android.com/guide/practices/page-sizes#compile-r27
33+
EXTRA_LDFLAGS="-Wl,-z,max-page-size=16384 $DEP_LD_FLAGS"
34+
35+
# Everything that goes below ${EXTRA_BUILD_CONFIGURATION_FLAGS} is specific to MediaFile.
3236
# You are free to enable/disable whatever you actually need.
3337

3438
./configure \
@@ -46,7 +50,7 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
4650
--ranlib=${FAM_RANLIB} \
4751
--strip=${FAM_STRIP} \
4852
--extra-cflags="-O3 -fPIC $DEP_CFLAGS" \
49-
--extra-ldflags="$DEP_LD_FLAGS" \
53+
--extra-ldflags="$EXTRA_LDFLAGS" \
5054
--enable-shared \
5155
--disable-static \
5256
--disable-vulkan \

scripts/libmp3lame/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/usr/bin/env bash
22

3+
CFLAGS=
4+
if [ "$ANDROID_ABI" = "x86" ] ; then
5+
# mp3lame's configure script sets -mtune=native for i686,
6+
# which leads to compilation errors on Mac with arm processors,
7+
# because 'native' is recognized as apple-m1 processor.
8+
# Passing an empty mtune resets the value to default
9+
CFLAGS="-mtune="
10+
fi
11+
312
./configure \
413
--prefix=${INSTALL_DIR} \
514
--host=${TARGET} \
@@ -11,6 +20,7 @@
1120
--disable-analyzer-hooks \
1221
--disable-gtktest \
1322
--disable-frontend \
23+
CFLAGS=$CFLAGS \
1424
CC=${FAM_CC} \
1525
AR=${FAM_AR} \
1626
RANLIB=${FAM_RANLIB} || exit 1

scripts/libx265/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source ${SCRIPTS_DIR}/common-functions.sh
44

5-
LIBX265_VERSION=4.0
5+
LIBX265_VERSION=4.1
66

77
downloadTarArchive \
88
"libx265" \

0 commit comments

Comments
 (0)