diff --git a/recipes/openttd/recipe.sh b/recipes/openttd/recipe.sh index 7dbedc016..0fd408f76 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} \