summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-12-05 00:04:27 +0100
committerConrad Kostecki <conikost@gentoo.org>2020-12-05 00:04:27 +0100
commitfd3a84a595cd275cadbea0a2344aac0358749d5c (patch)
treed016377bc198e72614a2200dd3f0d3f39abdaf82 /dev-lua/lua-openssl
parentapp-emulation/virt-manager: Version updated to 3.2.0. (diff)
downloadgentoo-fd3a84a595cd275cadbea0a2344aac0358749d5c.tar.gz
gentoo-fd3a84a595cd275cadbea0a2344aac0358749d5c.tar.bz2
gentoo-fd3a84a595cd275cadbea0a2344aac0358749d5c.zip
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 <conikost@gentoo.org>
Diffstat (limited to 'dev-lua/lua-openssl')
-rw-r--r--dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild5
-rw-r--r--dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild5
2 files changed, 10 insertions, 0 deletions
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