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 }