Skip to content

Commit 1e86a92

Browse files
committed
fix bluray build error
1 parent 6b64392 commit 1e86a92

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

do-compile/android/bluray.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ else
4141
fi
4242

4343
# prepare build config
44-
CFG_FLAGS="--prefix=$MR_BUILD_PREFIX --disable-shared --disable-dependency-tracking --disable-silent-rules --disable-bdjava-jar --without-freetype --without-fontconfig --disable-doxygen-doc --disable-examples"
44+
CFG_FLAGS="--prefix=$MR_BUILD_PREFIX --with-pic --disable-shared --disable-dependency-tracking --disable-silent-rules --disable-bdjava-jar --without-freetype --without-fontconfig --disable-doxygen-doc --disable-examples"
4545
CFLAGS="$MR_OTHER_CFLAGS"
4646

4747
if [[ "$MR_DEBUG" == "debug" ]];then

do-compile/apple/bluray.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ 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-darwin --with-sysroot=$MR_SYS_ROOT"
57+
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-$MR_PLAT --with-sysroot=$MR_SYS_ROOT"
5858
fi
5959

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

tools/parse-arguments.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ case $MR_PLAT in
266266
source $MR_SHELL_TOOLS_DIR/export-apple-host-env.sh
267267
;;
268268
android)
269+
export MR_OTHER_CFLAGS="$MR_OTHER_CFLAGS -D__ANDROID__"
269270
source $MR_SHELL_TOOLS_DIR/export-android-host-env.sh
270271
;;
271272
*)

0 commit comments

Comments
 (0)