diff --git a/contrib/src/zlib/rules.mak b/contrib/src/zlib/rules.mak
index 5a01691a5d459b6c4d3db028a66f91489a32df57..d32006b01693e71bd8c2ebbfe0095629bafe2419 100644
--- a/contrib/src/zlib/rules.mak
+++ b/contrib/src/zlib/rules.mak
@@ -26,7 +26,7 @@ ZLIB_CONF = -DINSTALL_PKGCONFIG_DIR:STRING=$(PREFIX)/lib/pkgconfig -DBUILD_EXAMP
 
 .zlib: zlib toolchain.cmake
 	$(CMAKECLEAN)
-	$(HOSTVARS) $(CMAKE) $(ZLIB_CONF)
+	$(HOSTVARS) $(CMAKE_PIC) $(ZLIB_CONF)
 	+$(CMAKEBUILD)
 	$(CMAKEINSTALL)
 	touch $@