aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWincent Colaiuta <win@wincent.com>2007-12-06 20:07:03 +0100
committerJunio C Hamano <gitster@pobox.com>2007-12-06 23:22:25 -0800
commitfe4aafba28036237c594e1324f83a388d88ab9db (patch)
tree10b3e734c682c9ed4a9cafea96eb252bf309233f /Makefile
parent08e1812db1585c450bfe7f41e7106222346c88da (diff)
downloadgit-fe4aafba28036237c594e1324f83a388d88ab9db.tar.gz
git-fe4aafba28036237c594e1324f83a388d88ab9db.tar.xz
Silence iconv warnings on Leopard
Apple ships a newer version of iconv with Leopard (Mac OS X 10.5/Darwin 9). Ensure that OLD_ICONV is not set on any version of Darwin in the 9.x series; this should be good for at least a couple of years, when Darwin 10 comes out and we can invert the sense of the test to specifically check for Darwin 7 or 8. A more sophisticated and robust check is possible for those who use autoconf, but not everybody does that. Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 999391e10..4dda3405b 100644
--- a/Makefile
+++ b/Makefile
@@ -406,7 +406,9 @@ endif
ifeq ($(uname_S),Darwin)
NEEDS_SSL_WITH_CRYPTO = YesPlease
NEEDS_LIBICONV = YesPlease
- OLD_ICONV = UnfortunatelyYes
+ ifneq ($(shell expr "$(uname_R)" : '9\.'),2)
+ OLD_ICONV = UnfortunatelyYes
+ endif
NO_STRLCPY = YesPlease
NO_MEMMEM = YesPlease
endif