From: Robert Schiele <rschiele@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH] zlib in custom location
Date: Fri, 27 Jul 2007 07:42:51 +0200 [thread overview]
Message-ID: <20070727054251.GC30038@schiele.dyndns.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]
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."
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2007-07-27 5:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-27 5:42 Robert Schiele [this message]
2007-07-27 6:14 ` [PATCH] zlib in custom location Robert Schiele
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070727054251.GC30038@schiele.dyndns.org \
--to=rschiele@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).