Simplify arm host triple fix

This commit is contained in:
Kevin Cotugno 2018-10-30 08:16:51 -07:00 committed by Fredrik Fornwall
parent 7ffc65a08a
commit 9accc01de0

View File

@ -8,11 +8,7 @@ TERMUX_PKG_DEPENDS="clang, openssl"
termux_step_configure () {
termux_setup_cmake
if [ "$TERMUX_ARCH" = "arm" ]; then
local triple="armv7-linux-androideabi"
else
local triple="$TERMUX_HOST_PLATFORM"
fi
local triple=`printf $TERMUX_HOST_PLATFORM | sed s/arm/armv7/`
sed "s%\\@TERMUX_PREFIX\\@%$TERMUX_PREFIX%g" \
$TERMUX_PKG_BUILDER_DIR/config.toml \