kakoune: Get rid of -no-integrated-as for arm

This commit is contained in:
Fredrik Fornwall 2019-12-30 22:47:00 +01:00
parent d576d71ded
commit 7635aa53a0
2 changed files with 13 additions and 6 deletions

View File

@ -2,18 +2,13 @@ TERMUX_PKG_HOMEPAGE=https://github.com/mawww/kakoune
TERMUX_PKG_DESCRIPTION="Code editor heavily inspired by Vim"
TERMUX_PKG_LICENSE="Unlicense"
TERMUX_PKG_VERSION=2019.12.10
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/mawww/kakoune/releases/download/v$TERMUX_PKG_VERSION/kakoune-$TERMUX_PKG_VERSION.tar.bz2
TERMUX_PKG_SHA256=66ad8d28cecb29b08e5975e659ee91206ca676a0194c730ca4eed026bafa2ff8
TERMUX_PKG_DEPENDS="libc++, ncurses"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src debug=no"
termux_step_pre_configure() {
if [ $TERMUX_ARCH = "arm" ]; then
CXXFLAGS+=" -no-integrated-as"
fi
}
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!$TERMUX_PREFIX/bin/sh

View File

@ -0,0 +1,12 @@
diff -u -r ../kakoune-2019.12.10/src/main.cc ./src/main.cc
--- ../kakoune-2019.12.10/src/main.cc 2019-12-10 10:36:03.000000000 +0000
+++ ./src/main.cc 2019-12-30 00:07:57.513633000 +0000
@@ -1184,7 +1184,7 @@
return 0;
}
-#if defined(__ELF__)
+#if defined(__ELF__) && !defined(__ANDROID__)
asm(R"(
.pushsection ".debug_gdb_scripts", "MS",@progbits,1
.byte 4