summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-03-14 21:05:58 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-03-18 16:31:32 +0100
commitf841ddbd24d6c8b0befaf1b61bf6a5b3c777612c (patch)
tree3c5ae0135f0092b9abef682c9ecaf1d1f20733e6 /meta-oe/recipes-devtools
parentf423ccb8a79a9e4e25d5be4fbf5320cf3772b1d0 (diff)
downloadmeta-openembedded-f841ddbd24d6c8b0befaf1b61bf6a5b3c777612c.tar.gz
luajit: Fix build with SSTATE enabled
luajit does not honor standard CC variables so when its built from shared state it does not compile because --sysroot is wrong. This patch fixes the problem by passing the TOOLCHAIN_OPTONS to appropriate flags so that it gets the correct sysroot value Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r--meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb
index 70cefa80b..a7f96f81f 100644
--- a/meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb
+++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.0.bb
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=9511885992e4900014e3b13ca6372b7d"
4HOMEPAGE = "http://luajit.org" 4HOMEPAGE = "http://luajit.org"
5 5
6DEPENDS += "lua5.1" 6DEPENDS += "lua5.1"
7PR = "r1" 7PR = "r2"
8SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz \ 8SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz \
9 file://disable_lj_vm_foldarith_for_spe.patch \ 9 file://disable_lj_vm_foldarith_for_spe.patch \
10 " 10 "
@@ -20,7 +20,7 @@ do_configure_prepend() {
20 sed -i -e s:/lib$:${base_libdir}:g ${S}/Makefile 20 sed -i -e s:/lib$:${base_libdir}:g ${S}/Makefile
21} 21}
22 22
23EXTRA_OEMAKE = 'CROSS=${HOST_PREFIX}' 23EXTRA_OEMAKE = 'CROSS=${HOST_PREFIX} TARGET_CFLAGS="${TOOLCHAIN_OPTIONS}" TARGET_LDFLAGS="${TOOLCHAIN_OPTIONS}" TARGET_SHLDFLAGS="${TOOLCHAIN_OPTIONS}"'
24EXTRA_OEMAKE_append_powerpc = ' HOST_CC="${BUILD_CC} -m32"' 24EXTRA_OEMAKE_append_powerpc = ' HOST_CC="${BUILD_CC} -m32"'
25EXTRA_OEMAKE_append_x86-64 = ' HOST_CC="${BUILD_CC}"' 25EXTRA_OEMAKE_append_x86-64 = ' HOST_CC="${BUILD_CC}"'
26EXTRA_OEMAKE_append_i586 = ' HOST_CC="${BUILD_CC} -m32"' 26EXTRA_OEMAKE_append_i586 = ' HOST_CC="${BUILD_CC} -m32"'