From fc852d7e741812a61691f5eba41e8a6f82648a6c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 13 Dec 2020 19:19:12 -0600 Subject: 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 --- dev-lang/luajit/luajit-2.1.0_beta3-r2.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dev-lang') 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 cb942e454d02..ebfafe94fabf 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" "")" } -- cgit v1.2.3-65-gdbad