fortune: Use LDFLAGS (see #3490)

This commit is contained in:
Fredrik Fornwall 2019-03-10 20:30:56 +01:00
parent 57ec4e6d0d
commit fa588a1576

View File

@ -2,12 +2,13 @@ TERMUX_PKG_HOMEPAGE=https://www.fefe.de/fortune/
TERMUX_PKG_DESCRIPTION="Revealer of fortunes" TERMUX_PKG_DESCRIPTION="Revealer of fortunes"
TERMUX_PKG_LICENSE="Public Domain" TERMUX_PKG_LICENSE="Public Domain"
TERMUX_PKG_VERSION=1.2 TERMUX_PKG_VERSION=1.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=http://dl.fefe.de/fortune-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=http://dl.fefe.de/fortune-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=cbb246a500366db39ce035632eb4954e09f1e03b28f2c4688864bfa8661b236a TERMUX_PKG_SHA256=cbb246a500366db39ce035632eb4954e09f1e03b28f2c4688864bfa8661b236a
termux_step_make_install() { termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR cd $TERMUX_PKG_SRCDIR
$CC $CFLAGS fortune.c -o $TERMUX_PREFIX/bin/fortune $CC $CFLAGS $LDFLAGS fortune.c -o $TERMUX_PREFIX/bin/fortune
mkdir -p $TERMUX_PREFIX/share/man/man6 mkdir -p $TERMUX_PREFIX/share/man/man6
cp debian/fortune.6 $TERMUX_PREFIX/share/man/man6/ cp debian/fortune.6 $TERMUX_PREFIX/share/man/man6/