git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] Include -lz when linking git-daemon.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Nov 5, 2006, 05:36 UTC
Message-ID
<20061105053615.GB4193@spearce.org>

Some platforms (Solaris in particular) appear to require -lz as part of the link line for git-daemon, due to it linking against sha1_file.o and that module requiring inflate/deflate support.

This wasn't made platform-specific in the Makefile as the existing use of -lz in every other (non git-daemon) application is also not platform-specific.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 1cc9f58..9f10054 100644
--- a/Makefile
+++ b/Makefile
@@ -317,6 +317,7 @@ BUILTIN_OBJS = \
 
 GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
 EXTLIBS = -lz
+SIMPLE_LIB = -lz
 
 #
 # Platform specific tweaks
-- 
1.4.3.3.g9621
Next: Junio C Hamano
Message 1 of 3 in “Include -lz when linking git-daemon.”
  1. 2/3 Include -lz when linking git-daemon.Shawn O. Pearce, Nov 5, 2006
  2. Junio C HamanoNov 5, 2006
  3. 2/2 Remove SIMPLE_PROGRAMS and make git-daemon a normal program.Shawn O. Pearce, Nov 5, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.