diff --git a/recipes/glutin/recipe.sh b/recipes/glutin/recipe.sh index bd2beb51dbb0d9fb54b9ce21d1d0aea3ea1ea183..459e2153925bca803c0c54c208de7abf50c7b8a3 100644 --- a/recipes/glutin/recipe.sh +++ b/recipes/glutin/recipe.sh @@ -6,12 +6,11 @@ CARGOFLAGS="--example window" function recipe_build { sysroot="$(realpath ../sysroot)" - cp -p "$ROOT/Xargo.toml" "Xargo.toml" set -x - xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \ + cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \ -- \ -L "${sysroot}/lib" \ - -C link-args="$("${PKG_CONFIG}" --libs osmesa) -lglapi -lz -lstdc++ -lc -lgcc" + -C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lstdc++ -lc -lgcc" set +x skip=1 }