stfl: Avoid overwriting LDFLAGS

This fixes DT_RUNPATH (see #3490).
This commit is contained in:
Fredrik Fornwall 2019-03-11 00:08:25 +01:00
parent 2581582ea4
commit cd3fd3b282

View File

@ -2,13 +2,14 @@ TERMUX_PKG_HOMEPAGE=http://www.clifford.at/stfl
TERMUX_PKG_DESCRIPTION="Structured Terminal Forms Language/Library"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.24
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=http://www.clifford.at/stfl/stfl-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_configure() {
export CC="$CC $CPPFLAGS"
export CFLAGS="-I. -fPIC -Wall -Os -ggdb"
export LDFLAGS="-L${TERMUX_PREFIX}/lib -lncursesw -liconv"
CC+=" $CPPFLAGS"
CFLAGS+=" -I. -D_XOPEN_SOURCE_EXTENDED=1"
LDFLAGS+=" -lncursesw -liconv"
}