@matheusbsbs / matheus-bagliano / commits / 54c261f90f
Fork 0

Remove dependency on a file named "-lz"

By changing the dependency "$(LIB_H)" to "$(LIBS)", at least one version of make thought that a file named "-lz" would be needed. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Johannes Schindelin committed Mar 27, 2006 at 01:14 UTC 54c261f90fb8aa9a0f12431cce2c2631a119d667
1 file changed +3 -3
Makefile
+3 -3
@@ -210,8 +210,8 @@ LIB_OBJS = \
210 fetch-clone.o revision.o pager.o \
211 $(DIFF_OBJS)
212
213 -LIBS = $(LIB_FILE) $(XDIFF_LIB)
214 -LIBS += -lz
213 +GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
214 +LIBS = $(GITLIBS) -lz
215
216 #
217 # Platform specific tweaks
@@ -545,7 +545,7 @@ init-db.o: init-db.c
545 -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir_SQ)"' $*.c
546
547 $(LIB_OBJS): $(LIB_H)
548 -$(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIBS)
548 +$(patsubst git-%$X,%.o,$(PROGRAMS)): $(GITLIBS)
549 $(DIFF_OBJS): diffcore.h
550
551 $(LIB_FILE): $(LIB_OBJS)