From 3a8bfb973543c6c3dfefd81fcaf2866297f45cf1 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Tue, 6 Dec 2022 15:35:52 -0700
Subject: [PATCH] Update webrender recipe

---
 recipes/webrender/recipe.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/recipes/webrender/recipe.sh b/recipes/webrender/recipe.sh
index 8b640f878..774f8d334 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
-- 
GitLab