File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 28
28
DEP_CFLAGS=" -I${BUILD_DIR_EXTERNAL} /${ANDROID_ABI} /include"
29
29
DEP_LD_FLAGS=" -L${BUILD_DIR_EXTERNAL} /${ANDROID_ABI} /lib $FFMPEG_EXTRA_LD_FLAGS "
30
30
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.
32
36
# You are free to enable/disable whatever you actually need.
33
37
34
38
./configure \
@@ -46,7 +50,7 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
46
50
--ranlib=${FAM_RANLIB} \
47
51
--strip=${FAM_STRIP} \
48
52
--extra-cflags=" -O3 -fPIC $DEP_CFLAGS " \
49
- --extra-ldflags=" $DEP_LD_FLAGS " \
53
+ --extra-ldflags=" $EXTRA_LDFLAGS " \
50
54
--enable-shared \
51
55
--disable-static \
52
56
--disable-vulkan \
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
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
+
3
12
./configure \
4
13
--prefix=${INSTALL_DIR} \
5
14
--host=${TARGET} \
11
20
--disable-analyzer-hooks \
12
21
--disable-gtktest \
13
22
--disable-frontend \
23
+ CFLAGS=$CFLAGS \
14
24
CC=${FAM_CC} \
15
25
AR=${FAM_AR} \
16
26
RANLIB=${FAM_RANLIB} || exit 1
Original file line number Diff line number Diff line change 2
2
3
3
source ${SCRIPTS_DIR} /common-functions.sh
4
4
5
- LIBX265_VERSION=4.0
5
+ LIBX265_VERSION=4.1
6
6
7
7
downloadTarArchive \
8
8
" libx265" \
You can’t perform that action at this time.
0 commit comments