File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 4141fi
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"
4545CFLAGS=" $MR_OTHER_CFLAGS "
4646
4747if [[ " $MR_DEBUG " == " debug" ]]; then
Original file line number Diff line number Diff 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 "
5858fi
5959
6060echo " ----------------------"
Original file line number Diff line number Diff 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 * )
You can’t perform that action at this time.
0 commit comments