diff --git a/lang/php7-pecl-http/Makefile b/lang/php7-pecl-http/Makefile
index aebd9cc04..68079048b 100644
--- a/lang/php7-pecl-http/Makefile
+++ b/lang/php7-pecl-http/Makefile
@@ -49,6 +49,7 @@ CONFIGURE_VARS+= \
 CONFIGURE_ARGS+= \
 	--with-http \
 	--without-http-shared-deps \
+	--with-http-zlib-dir="$(STAGING_DIR)/usr" \
 	--with-http-libcurl-dir="$(STAGING_DIR)/usr" \
 	--with-http-libevent-dir="$(STAGING_DIR)/usr" \
 	--with-http-libidn-dir="$(STAGING_DIR)/usr" \