superTuxKart: Fix aarch64-linux build
This commit is contained in:
parent
97de15956a
commit
b690ceff5d
@ -54,7 +54,12 @@ let
|
|||||||
"libsquish"
|
"libsquish"
|
||||||
# Not packaged to this date
|
# Not packaged to this date
|
||||||
"sheenbidi"
|
"sheenbidi"
|
||||||
];
|
]
|
||||||
|
# Our system angelscript causes linking error on ARM
|
||||||
|
# ld: libangelscript.so: undefined reference to
|
||||||
|
# `CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned int*, void*, unsigned long&, void*)'
|
||||||
|
# Bundled angelscript compiles fine
|
||||||
|
++ lib.optional stdenv.hostPlatform.isAarch64 "angelscript";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -100,15 +105,15 @@ stdenv.mkDerivation rec {
|
|||||||
harfbuzz
|
harfbuzz
|
||||||
mcpp
|
mcpp
|
||||||
wiiuse
|
wiiuse
|
||||||
angelscript
|
]
|
||||||
];
|
++ lib.optional (!stdenv.hostPlatform.isAarch64) angelscript;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_RECORDER=OFF" # libopenglrecorder is not in nixpkgs
|
"-DBUILD_RECORDER=OFF" # libopenglrecorder is not in nixpkgs
|
||||||
"-DUSE_SYSTEM_ANGELSCRIPT=OFF" # doesn't work with 2.31.2 or 2.32.0
|
# doesn't work with our 2.35.0 on aarch64-linux
|
||||||
|
"-DUSE_SYSTEM_ANGELSCRIPT=${if !stdenv.hostPlatform.isAarch64 then "ON" else "OFF"}"
|
||||||
"-DCHECK_ASSETS=OFF"
|
"-DCHECK_ASSETS=OFF"
|
||||||
"-DUSE_SYSTEM_WIIUSE=ON"
|
"-DUSE_SYSTEM_WIIUSE=ON"
|
||||||
"-DUSE_SYSTEM_ANGELSCRIPT=ON"
|
|
||||||
"-DOpenGL_GL_PREFERENCE=GLVND"
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user