diff --git a/contrib/src/libgit2/rules.mak b/contrib/src/libgit2/rules.mak
index 2d8ec4ea8559369f54b86827509cb86afecfa59a..0fd518fcbee66b76928e122da984b02d98beeb91 100644
--- a/contrib/src/libgit2/rules.mak
+++ b/contrib/src/libgit2/rules.mak
@@ -25,6 +25,7 @@ libgit2: libgit2-v$(LIBGIT2_VERSION).tar.gz .sum-libgit2
 LIBGIT2_CONF = -DCMAKE_BUILD_TYPE=Release \
 		-DBUILD_SHARED_LIBS=OFF \
 		-DBUILD_TESTS=OFF \
+		-DBUILD_CLI=OFF \
 		-DUSE_HTTPS=OFF \
 		-DCURL=OFF \
 		-DUSE_HTTP_PARSER=system \