From 459a21bd35675e140e19569e8b5c62c7fc4eee5b Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 5 Apr 2006 16:22:40 +0200 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c7d5ecf4..16415199 100644 --- a/Makefile +++ b/Makefile @@ -324,10 +324,12 @@ ifndef NO_CURL curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p) ifeq "$(curl_check)" "070908" ifndef NO_EXPAT - EXPAT_LIBEXPAT = -lexpat PROGRAMS += git-http-push$X endif endif + ifndef NO_EXPAT + EXPAT_LIBEXPAT = -lexpat + endif endif ifndef NO_OPENSSL -- 2.11.0