summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-12-13 19:19:12 -0600
committerWilliam Hubbs <williamh@gentoo.org>2020-12-13 19:20:24 -0600
commitfc852d7e741812a61691f5eba41e8a6f82648a6c (patch)
tree68c24df82e4104317aaed498d78a5d8e2cd2e92c /dev-lang/luajit
parentdev-lang/luajit: Fix 2.0.5 cross-compilation build (diff)
downloadgentoo-fc852d7e741812a61691f5eba41e8a6f82648a6c.tar.gz
gentoo-fc852d7e741812a61691f5eba41e8a6f82648a6c.tar.bz2
gentoo-fc852d7e741812a61691f5eba41e8a6f82648a6c.zip
dev-lang/luajit: 2.1.0_beta3 Fix cross-compilation build
This is the same fix as 2.0.5. Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-lang/luajit')
-rw-r--r--dev-lang/luajit/luajit-2.1.0_beta3-r2.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev-lang/luajit/luajit-2.1.0_beta3-r2.ebuild b/dev-lang/luajit/luajit-2.1.0_beta3-r2.ebuild
index cb942e454d0..ebfafe94fab 100644
--- a/dev-lang/luajit/luajit-2.1.0_beta3-r2.ebuild
+++ b/dev-lang/luajit/luajit-2.1.0_beta3-r2.ebuild
@@ -32,10 +32,16 @@ _emake() {
PREFIX="${EPREFIX}/usr" \
MULTILIB="$(get_libdir)" \
DESTDIR="${D}" \
+ CFLAGS="" \
+ LDFLAGS="" \
HOST_CC="$(tc-getBUILD_CC)" \
+ HOST_CFLAGS="${BUILD_CPPFLAGS} ${BUILD_CFLAGS}" \
+ HOST_LDFLAGS="${BUILD_LDFLAGS}" \
STATIC_CC="$(tc-getCC)" \
DYNAMIC_CC="$(tc-getCC) -fPIC" \
TARGET_LD="$(tc-getCC)" \
+ TARGET_CFLAGS="${CPPFLAGS} ${CFLAGS}" \
+ TARGET_LDFLAGS="${LDFLAGS}" \
TARGET_AR="$(tc-getAR) rcus" \
BUILDMODE="$(usex static-libs mixed dynamic)" \
TARGET_STRIP="true" \
@@ -44,6 +50,7 @@ _emake() {
}
src_compile() {
+ tc-export_build_env
_emake XCFLAGS="$(usex lua52compat "-DLUAJIT_ENABLE_LUA52COMPAT" "")"
}