diff --git a/recipes/cargo/recipe.sh b/recipes/cargo/recipe.sh
index 25f1bc857af0a6d534bcdd1fef9657c30e5f4111..3a688e5af4df39806bfbcb980c16043ec7bc523b 100644
--- a/recipes/cargo/recipe.sh
+++ b/recipes/cargo/recipe.sh
@@ -1,7 +1,9 @@
 GIT=https://github.com/redox-os/cargo.git
 BRANCH=redox_rebase
-BUILD_DEPENDS=(openssl)
+BUILD_DEPENDS=(openssl zlib)
 
 function recipe_build {
+    export DEP_OPENSSL_ROOT="$PWD/../sysroot"
     export OPENSSL_DIR="$PWD/../sysroot"
+    export DEP_Z_ROOT="$PWD/../sysroot"
 }