Hello,

I have tried changes that you have suggested, with them, supertuxkart was 
building successfully on mips, mipsel, mips64el, i386 and amd64.

add-as_callfunc_mips-to-CMakeLists.patch - adds as_callfunc_mips.cpp file into 
CMakeLists.txt
fix-non-x86-arches-build.patch - fix angelscript build on non-x86 64-bits 
arches.

The patches that contains mentioned changes are attached.
--- supertuxkart-0.9.2.orig/lib/angelscript/source/as_config.h
+++ supertuxkart-0.9.2/lib/angelscript/source/as_config.h
@@ -844,7 +844,7 @@
 			#define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK
 			#define AS_X86
 			#undef AS_NO_THISCALL_FUNCTOR_METHOD
-		#elif defined(__LP64__) && !defined(__arm64__)
+		#elif defined(__x86_64__)
 			#define AS_X64_GCC
 			#undef AS_NO_THISCALL_FUNCTOR_METHOD
 			#define HAS_128_BIT_PRIMITIVES
--- supertuxkart-0.9.2.orig/lib/angelscript/projects/cmake/CMakeLists.txt
+++ supertuxkart-0.9.2/lib/angelscript/projects/cmake/CMakeLists.txt
@@ -95,6 +95,7 @@ set(ANGELSCRIPT_SOURCE
     ../../source/as_tokenizer.cpp
     ../../source/as_typeinfo.cpp
     ../../source/as_variablescope.cpp
+    ../../source/as_callfunc_mips.cpp
 )
 
 if(MSVC AND CMAKE_CL_64)

Reply via email to