diff options
author | Khem Raj <raj.khem@gmail.com> | 2013-03-14 21:05:58 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-03-18 16:31:32 +0100 |
commit | f841ddbd24d6c8b0befaf1b61bf6a5b3c777612c (patch) | |
tree | 3c5ae0135f0092b9abef682c9ecaf1d1f20733e6 /meta-oe/recipes-devtools | |
parent | f423ccb8a79a9e4e25d5be4fbf5320cf3772b1d0 (diff) | |
download | meta-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.bb | 4 |
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" | |||
4 | HOMEPAGE = "http://luajit.org" | 4 | HOMEPAGE = "http://luajit.org" |
5 | 5 | ||
6 | DEPENDS += "lua5.1" | 6 | DEPENDS += "lua5.1" |
7 | PR = "r1" | 7 | PR = "r2" |
8 | SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz \ | 8 | SRC_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 | ||
23 | EXTRA_OEMAKE = 'CROSS=${HOST_PREFIX}' | 23 | EXTRA_OEMAKE = 'CROSS=${HOST_PREFIX} TARGET_CFLAGS="${TOOLCHAIN_OPTIONS}" TARGET_LDFLAGS="${TOOLCHAIN_OPTIONS}" TARGET_SHLDFLAGS="${TOOLCHAIN_OPTIONS}"' |
24 | EXTRA_OEMAKE_append_powerpc = ' HOST_CC="${BUILD_CC} -m32"' | 24 | EXTRA_OEMAKE_append_powerpc = ' HOST_CC="${BUILD_CC} -m32"' |
25 | EXTRA_OEMAKE_append_x86-64 = ' HOST_CC="${BUILD_CC}"' | 25 | EXTRA_OEMAKE_append_x86-64 = ' HOST_CC="${BUILD_CC}"' |
26 | EXTRA_OEMAKE_append_i586 = ' HOST_CC="${BUILD_CC} -m32"' | 26 | EXTRA_OEMAKE_append_i586 = ' HOST_CC="${BUILD_CC} -m32"' |