termux-packages/packages/silversearcher-ag/build.sh
Henrik Grimler 0396f55b6b
silversearcher-ag: fix build with ndk-r23
Build fails due to duplicated/shared variables, like:

[...]
ld: error: duplicate symbol: out_fd
>>> defined at ignore.c
>>>            src/ignore.o:(out_fd)
>>> defined at scandir.c
>>>            src/scandir.o:(.bss+0x188)

ld: error: duplicate symbol: print_mtx
>>> defined at ignore.c
>>>            src/ignore.o:(print_mtx)
>>> defined at scandir.c
>>>            src/scandir.o:(.bss+0x8)

ld: error: duplicate symbol: root_ignores
>>> defined at ignore.c
>>>            src/ignore.o:(root_ignores)
>>> defined at scandir.c
>>>            src/scandir.o:(.bss+0x0)

ld: error: duplicate symbol: stats
>>> defined at ignore.c
>>>            src/ignore.o:(stats)
>>> defined at scandir.c
>>>            src/scandir.o:(.bss+0x190)

ld: error: duplicate symbol: alpha_skip_lookup
>>> defined at print.c
>>>            src/print.o:(alpha_skip_lookup)
>>> defined at search.c
>>>            src/search.o:(.bss+0x102B0)
2021-11-17 19:36:45 +01:00

14 lines
518 B
Bash

TERMUX_PKG_HOMEPAGE=https://geoff.greer.fm/ag/
TERMUX_PKG_DESCRIPTION="Fast grep-like program, alternative to ack-grep"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.2.0
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://geoff.greer.fm/ag/releases/the_silver_searcher-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=d9621a878542f3733b5c6e71c849b9d1a830ed77cb1a1f6c2ea441d4b0643170
TERMUX_PKG_DEPENDS="pcre, liblzma, zlib"
termux_step_pre_configure() {
export CFLAGS+=" -fcommon"
}