fixes libgit2 for arm (#2316)

This commit is contained in:
its-pointless 2018-04-09 07:33:39 +10:00 committed by Fredrik Fornwall
parent ebf7c80eac
commit c3d307c97f

View File

@ -4,4 +4,11 @@ TERMUX_PKG_VERSION=0.27.0
TERMUX_PKG_SHA256=545b0458292c786aba334f1bf1c8f73600ae73dd7205a7bb791a187ee48ab8d2 TERMUX_PKG_SHA256=545b0458292c786aba334f1bf1c8f73600ae73dd7205a7bb791a187ee48ab8d2
TERMUX_PKG_SRCURL=https://github.com/libgit2/libgit2/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/libgit2/libgit2/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libcurl, openssl" TERMUX_PKG_DEPENDS="libcurl, openssl"
TERMUX_PKG_REVISION=1
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_CLAR=OFF" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_CLAR=OFF"
termux_step_pre_configure() {
# fixes for arm https://github.com/android-ndk/ndk/issues/642
if [ $TERMUX_ARCH = "arm" ]; then
CFLAGS+=" -mllvm -arm-promote-constant=0"
fi
}