From 425e3e760fa072ae61bd82ff2e8ff46ed556a661 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Mon, 19 Jul 2021 08:28:26 -0600
Subject: [PATCH] Force zlib to be linked for glium and glutin

---
 recipes/glium/recipe.sh  | 2 +-
 recipes/glutin/recipe.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/glium/recipe.sh b/recipes/glium/recipe.sh
index 7907194e7..4a9a51ff1 100644
--- a/recipes/glium/recipe.sh
+++ b/recipes/glium/recipe.sh
@@ -10,7 +10,7 @@ function recipe_build {
     cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
         -- \
         -L "${sysroot}/lib" \
-        -C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lstdc++ -lc -lgcc"
+        -C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lz -lstdc++ -lc -lgcc"
     set +x
     skip=1
 }
diff --git a/recipes/glutin/recipe.sh b/recipes/glutin/recipe.sh
index 459e21539..7e3e04d7c 100644
--- a/recipes/glutin/recipe.sh
+++ b/recipes/glutin/recipe.sh
@@ -10,7 +10,7 @@ function recipe_build {
     cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
         -- \
         -L "${sysroot}/lib" \
-        -C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lstdc++ -lc -lgcc"
+        -C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lz -lstdc++ -lc -lgcc"
     set +x
     skip=1
 }
-- 
GitLab