termux-packages/packages/cpio/build.sh
Henrik Grimler abb053274b
cpio: fix build with ndk-r23
Without -fcommon we get an error due to program_name being used in two
source files:

ld: error: duplicate symbol: program_name
>>> defined at global.c
>>>            global.o:(program_name)
>>> defined at progname.c
>>>            progname.o:(.bss+0x0) in archive ../gnu/libgnu.a
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
2021-11-17 21:09:56 +01:00

12 lines
496 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/cpio/
TERMUX_PKG_DESCRIPTION="CPIO implementation from the GNU project"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.13
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/cpio/cpio-$TERMUX_PKG_VERSION.tar.bz2
TERMUX_PKG_SHA256=eab5bdc5ae1df285c59f2a4f140a98fc33678a0bf61bdba67d9436ae26b46f6d
TERMUX_PKG_DEPENDS="tar"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-rmt=$TERMUX_PREFIX/libexec/rmt"