Use the termux_error_exit shell function
This commit is contained in:
parent
1006361f98
commit
71430aa64e
@ -30,8 +30,7 @@ termux_step_configure () {
|
|||||||
_ARCH=$TERMUX_ARCH
|
_ARCH=$TERMUX_ARCH
|
||||||
_EXTRA_CONFIGURE_FLAGS="--enable-neon"
|
_EXTRA_CONFIGURE_FLAGS="--enable-neon"
|
||||||
else
|
else
|
||||||
echo "Unsupported arch $TERMUX_ARCH"
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --disable-lzma to avoid problem with shared library clashes, see
|
# --disable-lzma to avoid problem with shared library clashes, see
|
||||||
|
@ -22,8 +22,7 @@ termux_step_configure () {
|
|||||||
export LD=$CC
|
export LD=$CC
|
||||||
_CONFIGURE_TARGET="--target=x86_64-android-gcc"
|
_CONFIGURE_TARGET="--target=x86_64-android-gcc"
|
||||||
else
|
else
|
||||||
echo "Unsupported arch: $TERMUX_ARCH"
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# For --disable-realtime-only, see
|
# For --disable-realtime-only, see
|
||||||
|
@ -32,8 +32,7 @@ termux_step_pre_configure() {
|
|||||||
elif [ $TERMUX_ARCH = "x86_64" ]; then
|
elif [ $TERMUX_ARCH = "x86_64" ]; then
|
||||||
export TERMUX_PKG_EXTRA_MAKE_ARGS=x86-64.linux
|
export TERMUX_PKG_EXTRA_MAKE_ARGS=x86-64.linux
|
||||||
else
|
else
|
||||||
echo "Error: Unsupported arch: $TERMUX_ARCH"
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/src64
|
TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/src64
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user