luajit: Fix mips build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Khem Raj 2017-09-20 15:32:21 -07:00 committed by Martin Jansa
parent 0707846a98
commit 92e58a8cf4
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
clang pretends to be gcc 4.2.0 which is a big lie when it comes
to features, its same as latest gcc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending
Index: LuaJIT-2.0.5/src/lj_arch.h
===================================================================
--- LuaJIT-2.0.5.orig/src/lj_arch.h
+++ LuaJIT-2.0.5/src/lj_arch.h
@@ -313,7 +313,7 @@
#error "Need at least GCC 4.2 or newer"
#endif
#elif !LJ_TARGET_PS3
-#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
+#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3) && !defined(__clang__)
#error "Need at least GCC 4.3 or newer"
#endif
#endif

View File

@ -5,6 +5,7 @@ HOMEPAGE = "http://luajit.org"
SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz \
file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
file://clang.patch \
"
SRC_URI[md5sum] = "48353202cbcacab84ee41a5a70ea0a2c"
SRC_URI[sha256sum] = "874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979"