supertuxkart-0.9.2-fix-angelscript.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. Description: Fix FTBFS on arm64, mips/mips64/mipsel, ppc64el, s390x
  2. Origin: upstream, https://github.com/supertuxkart/stk-code/commit/5e05f1178ce6bc5f3a653b55ab3dc6d016196341
  3. Bug: https://github.com/supertuxkart/stk-code/issues/2569
  4. Bug-Debian: https://bugs.debian.org/830748
  5. Last-Update: 2016-12-03
  6. --- a/lib/angelscript/projects/cmake/CMakeLists.txt
  7. +++ b/lib/angelscript/projects/cmake/CMakeLists.txt
  8. @@ -68,6 +68,7 @@ set(ANGELSCRIPT_SOURCE
  9. ../../source/as_bytecode.cpp
  10. ../../source/as_callfunc.cpp
  11. ../../source/as_callfunc_x86.cpp
  12. + ../../source/as_callfunc_mips.cpp
  13. ../../source/as_callfunc_x64_gcc.cpp
  14. ../../source/as_callfunc_x64_msvc.cpp
  15. ../../source/as_callfunc_x64_mingw.cpp
  16. --- a/lib/angelscript/source/as_config.h
  17. +++ b/lib/angelscript/source/as_config.h
  18. @@ -844,7 +844,7 @@
  19. #define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK
  20. #define AS_X86
  21. #undef AS_NO_THISCALL_FUNCTOR_METHOD
  22. - #elif defined(__LP64__) && !defined(__arm64__)
  23. + #elif defined(__x86_64__)
  24. #define AS_X64_GCC
  25. #undef AS_NO_THISCALL_FUNCTOR_METHOD
  26. #define HAS_128_BIT_PRIMITIVES