fix(main/marisa): rebuild for arm (#12392)

This commit is contained in:
termux-pacman-bot
2022-10-15 15:44:31 +00:00
parent 21773cb4e0
commit aa415bc84d

View File

@@ -3,10 +3,17 @@ TERMUX_PKG_DESCRIPTION="Matching Algorithm with Recursively Implemented StorAge"
TERMUX_PKG_LICENSE="BSD 2-Clause, LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.2.6
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/s-yata/marisa-trie/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=1063a27c789e75afa2ee6f1716cc6a5486631dcfcb7f4d56d6485d2462e566de
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
# fix arm build and potentially other archs hidden bugs
# ERROR: lib/libmarisa.so contains undefined symbols:
# 39: 00000000 0 NOTYPE GLOBAL DEFAULT UND __aeabi_uidiv
# 40: 00000000 0 NOTYPE GLOBAL DEFAULT UND __aeabi_idiv
# 49: 00000000 0 NOTYPE GLOBAL DEFAULT UND __aeabi_idivmod
LDFLAGS+=" $($CC -print-libgcc-file-name)"
autoreconf -fi
}