Skip to content

Commit 5504127

Browse files
committed
fix ios xml2 lipo same arch error
1 parent cc7bc72 commit 5504127

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

do-compile/apple/xml2.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ else
2525
export MR_OTHER_CFLAGS="${MR_OTHER_CFLAGS} -Os"
2626
fi
2727

28-
CFLAGS="$MR_OTHER_CFLAGS"
28+
CFLAGS="-arch $MR_ARCH $MR_OTHER_CFLAGS"
2929

3030
# prepare build config
3131
CFG_FLAGS="--prefix=$MR_BUILD_PREFIX"
32+
3233
# for cross compile
3334
if [[ $(uname -m) != "$MR_ARCH" || "$MR_FORCE_CROSS" ]];then
3435
echo "[*] cross compile, on $(uname -m) compile $MR_PLAT $MR_ARCH."

0 commit comments

Comments
 (0)