Skip to content

Commit cc7bc72

Browse files
committed
fix --host
1 parent 45dc311 commit cc7bc72

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

do-compile/android/bluray.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ if [[ $(uname -m) != "$MR_ARCH" || "$MR_FORCE_CROSS" ]];then
5353
echo "[*] cross compile, on $(uname -m) compile $MR_PLAT $MR_ARCH."
5454
# https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
5555
CFLAGS="$CFLAGS -isysroot $MR_SYS_ROOT"
56-
# $MR_ARCH-apple-darwin
57-
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-$MR_PLAT --with-sysroot=$MR_SYS_ROOT"
56+
# aarch64-linux-android21
57+
CFG_FLAGS="$CFG_FLAGS --host=$MR_FF_ARCH-linux-android$MR_ANDROID_API --with-sysroot=$MR_SYS_ROOT"
5858
fi
5959

6060
echo "----------------------"

do-compile/android/dvdread.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ fi
3232
if [[ $(uname -m) != "$MR_ARCH" || "$MR_FORCE_CROSS" ]];then
3333
echo "[*] cross compile, on $(uname -m) compile $MR_PLAT $MR_ARCH."
3434
# https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
35-
CFLAGS="$CFLAGS -isysroot $MR_SYS_ROOT"
36-
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-darwin --with-sysroot=$MR_SYS_ROOT"
35+
# aarch64-linux-android21
36+
CFG_FLAGS="$CFG_FLAGS --host=$MR_FF_ARCH-linux-android$MR_ANDROID_API --with-sysroot=$MR_SYS_ROOT"
3737
fi
3838

3939
echo "----------------------"

do-compile/android/unibreak.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ if [[ $(uname -m) != "$MR_ARCH" || "$MR_FORCE_CROSS" ]];then
2828
echo "[*] cross compile, on $(uname -m) compile $MR_PLAT $MR_ARCH."
2929
# https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
3030
CFLAGS="$CFLAGS -isysroot $MR_SYS_ROOT"
31-
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-darwin --with-sysroot=$MR_SYS_ROOT"
31+
# aarch64-linux-android21
32+
CFG_FLAGS="$CFG_FLAGS --host=$MR_FF_ARCH-linux-android$MR_ANDROID_API --with-sysroot=$MR_SYS_ROOT"
3233
fi
3334

3435
cd $MR_BUILD_SOURCE

do-compile/apple/bluray.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ if [[ $(uname -m) != "$MR_ARCH" || "$MR_FORCE_CROSS" ]];then
5454
# https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
5555
CFLAGS="$CFLAGS -isysroot $MR_SYS_ROOT"
5656
# $MR_ARCH-apple-darwin
57-
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-$MR_PLAT --with-sysroot=$MR_SYS_ROOT"
57+
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-darwin --with-sysroot=$MR_SYS_ROOT"
5858
fi
5959

6060
echo "----------------------"
6161
echo "[*] configurate $LIB_NAME"
6262
echo "----------------------"
6363

6464
# use system xml2 lib
65-
export LIBXML2_CFLAGS=$(xml2-config --prefix=${MR_SYS_ROOT}/usr --cflags)
66-
export LIBXML2_LIBS=$(xml2-config --prefix=${MR_SYS_ROOT}/usr --libs)
65+
# export LIBXML2_CFLAGS=$(xml2-config --prefix=${MR_SYS_ROOT}/usr --cflags)
66+
# export LIBXML2_LIBS=$(xml2-config --prefix=${MR_SYS_ROOT}/usr --libs)
6767

6868
cd $MR_BUILD_SOURCE
6969

do-compile/apple/xml2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if [[ $(uname -m) != "$MR_ARCH" || "$MR_FORCE_CROSS" ]];then
3535
# https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
3636
CFLAGS="$CFLAGS -isysroot $MR_SYS_ROOT"
3737
# $MR_ARCH-apple-darwin
38-
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-$MR_PLAT --with-sysroot=$MR_SYS_ROOT"
38+
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-darwin --with-sysroot=$MR_SYS_ROOT"
3939
fi
4040

4141
echo "----------------------"

0 commit comments

Comments
 (0)