We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a0f0ff commit 5379e5eCopy full SHA for 5379e5e
scripts/libmp3lame/build.sh
@@ -1,5 +1,14 @@
1
#!/usr/bin/env bash
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
+
12
./configure \
13
--prefix=${INSTALL_DIR} \
14
--host=${TARGET} \
@@ -11,6 +20,7 @@
20
--disable-analyzer-hooks \
21
--disable-gtktest \
22
--disable-frontend \
23
+ CFLAGS=$CFLAGS \
24
CC=${FAM_CC} \
15
25
AR=${FAM_AR} \
16
26
RANLIB=${FAM_RANLIB} || exit 1
0 commit comments