From fd3a84a595cd275cadbea0a2344aac0358749d5c Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Sat, 5 Dec 2020 00:04:27 +0100 Subject: dev-lua/lua-openssl: fix cross compiling Closes: https://bugs.gentoo.org/758419 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki --- dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild | 5 +++++ dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'dev-lua') diff --git a/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild b/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild index db73e088c944..f8e40f03140f 100644 --- a/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild +++ b/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild @@ -63,6 +63,7 @@ lua_src_compile() { "LUA_CFLAGS=${CFLAGS} $(lua_get_CFLAGS)" "LUA_LIBS=${LDFLAGS}" "LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))" + "TARGET_SYS=${CTARGET:-${CHOST}}" ) emake "${myemakeargs[@]}" @@ -79,6 +80,8 @@ lua_src_test() { local myemakeargs=( "LUA=${ELUA}" + "LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))" + "TARGET_SYS=${CTARGET:-${CHOST}}" ) emake "${myemakeargs[@]}" test @@ -95,6 +98,8 @@ lua_src_install() { local myemakeargs=( "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)" + "LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))" + "TARGET_SYS=${CTARGET:-${CHOST}}" ) emake "${myemakeargs[@]}" install diff --git a/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild b/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild index 491a5abf27c4..c8c126b8cb44 100644 --- a/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild +++ b/dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild @@ -58,6 +58,7 @@ src_compile() { "LUA_CFLAGS=${CFLAGS} -I$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))" "LUA_LIBS=${LDFLAGS}" "LUA_VERSION=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'abiver' 'V') $(usex luajit 'luajit' 'lua'))" + "TARGET_SYS=${CTARGET:-${CHOST}}" ) emake "${myemakeargs[@]}" @@ -66,6 +67,8 @@ src_compile() { src_test() { local myemakeargs=( "LUA=$(usex luajit 'luajit' 'lua')" + "LUA_VERSION=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'abiver' 'V') $(usex luajit 'luajit' 'lua'))" + "TARGET_SYS=${CTARGET:-${CHOST}}" ) emake "${myemakeargs[@]}" test @@ -74,6 +77,8 @@ src_test() { src_install() { local myemakeargs=( "LUA_LIBDIR=${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" + "LUA_VERSION=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'abiver' 'V') $(usex luajit 'luajit' 'lua'))" + "TARGET_SYS=${CTARGET:-${CHOST}}" ) emake "${myemakeargs[@]}" install -- cgit v1.2.3-65-gdbad