diff --git a/recipes/webrender/recipe.sh b/recipes/webrender/recipe.sh
index 8b640f878831e1cb66bd788da9fa7cd3a860564a..774f8d33478a16357de7fbe2813343c02701a184 100644
--- a/recipes/webrender/recipe.sh
+++ b/recipes/webrender/recipe.sh
@@ -5,17 +5,16 @@ BUILD_DEPENDS=(freetype libpng llvm mesa zlib)
 
 function recipe_build {
     sysroot="$(realpath ../sysroot)"
-    cp -p "$ROOT/Xargo.toml" "Xargo.toml"
     for rs in $(find examples/ -maxdepth 1 -type f -name '*.rs')
     do
         bin="$(basename "$rs" .rs)"
         set -x
-        xargo rustc --target "$TARGET" --release --manifest-path examples/Cargo.toml --bin "$bin" \
+        cargo rustc --target "$TARGET" --release --manifest-path examples/Cargo.toml --bin "$bin" \
             -- \
             -L "${sysroot}/lib" \
             -l static=freetype \
             -l static=png \
-            -C link-args="$("${PKG_CONFIG}" --libs osmesa) -lglapi -lz -lstdc++ -lc -lgcc"
+            -C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lz -lstdc++ -lc -lgcc"
         set +x
     done
     skip=1