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

[PATCH] zlib in custom location

From
Robert Schiele <rschiele@gmail.com>
Date
Jul 27, 2007, 05:42 UTC
Message-ID
<20070727054251.GC30038@schiele.dyndns.org>
Hi,

I have some systems with zlib in a custom location and thus did the following change to support a variable ZLIBDIR like it does already exist for OPENSSLDIR. Would be great to see this in the main tree.

commit d61424558cda558b0c7893f545d548c6d6f211ff
Author: Robert Schiele <rschiele@gmail.com>
Date:   Thu Jul 26 22:34:16 2007 -0700
    - add option to find zlib in custom path
diff --git a/Makefile b/Makefile
index 73b487f..0179339 100644
--- a/Makefile
+++ b/Makefile
@@ -372,7 +372,7 @@ BUILTIN_OBJS = \
 	builtin-pack-refs.o
 
 GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
-EXTLIBS = -lz
+EXTLIBS =
 
 #
 # Platform specific tweaks
@@ -517,6 +517,12 @@ ifndef NO_CURL
 	endif
 endif
 
+ifdef ZLIBDIR
+	BASIC_CFLAGS += -I$(ZLIBDIR)/include
+	EXTLIBS += -L$(ZLIBDIR)/lib $(CC_LD_DYNPATH)$(ZLIBDIR)/lib
+endif
+EXTLIBS += -lz
+
 ifndef NO_OPENSSL
 	OPENSSL_LIBSSL = -lssl
 	ifdef OPENSSLDIR

Robert
-- 
Robert Schiele
Dipl.-Wirtsch.informatiker	mailto:rschiele@gmail.com

"Quidquid latine dictum sit, altum sonatur."
Next: Robert Schiele
Message 1 of 2 in “zlib in custom location”
  1. zlib in custom locationRobert Schiele, Jul 27, 2007
  2. Robert SchieleJul 27, 2007

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.