luajit: fix build II

* previous fix didn't work very well, because host version really needs
  to use the same pointer size, so it's better to disable native builds
  completely and let HOST_LUA to be compiled in target build with
  correct params
* EXTRA_OEMAKE_append_mips64 = ' HOST_CC="${BUILD_CC} -m32"'
  looks like mistake, is mips64 using 32bit pointers?

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa
2016-03-17 15:11:23 +01:00
parent d82b0d8f63
commit eb7aa7a384
+16 -12
View File
@@ -20,19 +20,23 @@ do_configure_prepend() {
sed -i 's:MULTILIB= lib:MULTILIB= ${baselib}:g' ${S}/Makefile sed -i 's:MULTILIB= lib:MULTILIB= ${baselib}:g' ${S}/Makefile
} }
EXTRA_OEMAKE = 'CROSS=${HOST_PREFIX} \ # http://luajit.org/install.html#cross
TARGET_CFLAGS="${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" \ # Host luajit needs to be compiled with the same pointer size
TARGET_LDFLAGS="${TOOLCHAIN_OPTIONS}" \ # If you want to cross-compile to any 32 bit target on an x64 OS,
TARGET_SHLDFLAGS="${TOOLCHAIN_OPTIONS}"' # you need to install the multilib development package (e.g.
EXTRA_OEMAKE_append_powerpc = ' HOST_CC="${BUILD_CC} -m32"' # libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part
EXTRA_OEMAKE_append_x86 = ' HOST_CC="${BUILD_CC} -m32"' # (HOST_CC="gcc -m32").
EXTRA_OEMAKE_append_x86-64 = ' HOST_CC="${BUILD_CC}"' BUILD_CC_ARCH_append_powerpc = ' -m32'
EXTRA_OEMAKE_append_powerpc64 = ' HOST_CC="${BUILD_CC}"' BUILD_CC_ARCH_append_x86 = ' -m32'
EXTRA_OEMAKE_append_arm = ' HOST_CC="${BUILD_CC} -m32"' BUILD_CC_ARCH_append_arm = ' -m32'
EXTRA_OEMAKE_append_mips64 = ' HOST_CC="${BUILD_CC} -m32"'
DEPENDS_append_class_target = " luajit-native" EXTRA_OEMAKE_append_class-target = '\
EXTRA_OEMAKE_append_class_target = " HOST_LUA=luajit" CROSS=${HOST_PREFIX} \
HOST_CC="${BUILD_CC} ${BUILD_CC_ARCH}" \
TARGET_CFLAGS="${TOOLCHAIN_OPTIONS} ${TARGET_CC_ARCH}" \
TARGET_LDFLAGS="${TOOLCHAIN_OPTIONS}" \
TARGET_SHLDFLAGS="${TOOLCHAIN_OPTIONS}" \
'
do_compile () { do_compile () {
oe_runmake oe_runmake