File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2828DEP_CFLAGS=" -I${BUILD_DIR_EXTERNAL} /${ANDROID_ABI} /include"
2929DEP_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 \
Original file line number Diff line number Diff line change 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} \
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
Original file line number Diff line number Diff line change 22
33source ${SCRIPTS_DIR} /common-functions.sh
44
5- LIBX265_VERSION=4.0
5+ LIBX265_VERSION=4.1
66
77downloadTarArchive \
88 " libx265" \
You can’t perform that action at this time.
0 commit comments