diff --git a/recipes/glium/recipe.sh b/recipes/glium/recipe.sh
index 7907194e75571a2215ddb0755420ba977cc84448..4a9a51ff10c1efa5ec476d5da72cda182c7cef2a 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 459e2153925bca803c0c54c208de7abf50c7b8a3..7e3e04d7cabf4c72f05edfe031f2102a7d6da79e 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
 }