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)
This commit is contained in:
Henrik Grimler 2021-11-17 19:35:23 +01:00
parent 8dd2b5413b
commit 0396f55b6b
No known key found for this signature in database
GPG Key ID: B0076E490B71616B

View File

@ -3,7 +3,11 @@ 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=4
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"
}