@matheusbsbs / matheus-bagliano / commits / 459a21bd35
Fork 0

Fix compile with expat, but an old curl version

With an old curl version, git-http-push is not compiled. But git-http-fetch still needs to be linked with expat if NO_EXPAT is not defined. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Johannes Schindelin committed Apr 5, 2006 at 16:22 UTC 459a21bd35675e140e19569e8b5c62c7fc4eee5b
1 file changed +3 -1
Makefile
+3 -1
@@ -324,10 +324,12 @@ ifndef NO_CURL
324 curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
325 ifeq "$(curl_check)" "070908"
326 ifndef NO_EXPAT
327 - EXPAT_LIBEXPAT = -lexpat
327 PROGRAMS += git-http-push$X
328 endif
329 endif
330 + ifndef NO_EXPAT
331 + EXPAT_LIBEXPAT = -lexpat
332 + endif
333 endif
334
335 ifndef NO_OPENSSL