liblua: pass LDFLAGS to makefile so DT_RUNPATH will be set

This commit is contained in:
Leonid Pliushch 2019-03-20 02:25:41 +02:00
parent 5a18350722
commit 30a22c75d0

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.lua.org/
TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter" TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter"
TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=5.3.5 TERMUX_PKG_VERSION=5.3.5
TERMUX_PKG_REVISION=1 TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac TERMUX_PKG_SHA256=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac
TERMUX_PKG_SRCURL=https://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_EXTRA_MAKE_ARGS=linux TERMUX_PKG_EXTRA_MAKE_ARGS=linux
@ -14,6 +14,7 @@ TERMUX_PKG_BUILD_DEPENDS="readline"
termux_step_pre_configure() { termux_step_pre_configure() {
AR+=" rcu" AR+=" rcu"
CFLAGS+=" -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_UNPACK" CFLAGS+=" -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_UNPACK"
export MYLDFLAGS=$LDFLAGS
} }
termux_step_post_make_install() { termux_step_post_make_install() {