Skip to content

Commit

Permalink
dev-lua/lua-openssl: fix cross compiling
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/758419
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <[email protected]>
  • Loading branch information
ConiKost committed Dec 4, 2020
1 parent dd42ddf commit fd3a84a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
Expand All @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fd3a84a

Please sign in to comment.