diff --git a/recipes/openttd/recipe.sh b/recipes/openttd/recipe.sh index 7dbedc016072f9d4fca26e609da7cd93f0bb05e0..0fd408f768067c1031ebadb1d6cde1371d08027d 100644 --- a/recipes/openttd/recipe.sh +++ b/recipes/openttd/recipe.sh @@ -14,6 +14,9 @@ function recipe_update { } function recipe_build { + sysroot="$(realpath ../sysroot)" + export CFLAGS="-I$sysroot/include" + export LDFLAGS="-L$sysroot/lib --static" ./configure \ --build=${BUILD} \ --host=${HOST} \