summaryrefslogtreecommitdiff
path: root/config.mak.uname
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-08-15 10:02:46 -0700
committerJunio C Hamano <gitster@pobox.com>2014-08-15 11:04:59 -0700
commit9eeff2f6810d4f962aa78ddf43193fba26d9451a (patch)
tree84695a7d8aabc56826ada106a21b021ea13961a7 /config.mak.uname
parent9c7a0beee093908e26c11e689e391f95410d35c2 (diff)
downloadgit-9eeff2f6810d4f962aa78ddf43193fba26d9451a.tar.gz
config.mak.uname: add hint on uname_R for MacOS Xjc/config-mak-document-darwin-vs-macosx
I always have to scratch my head every time I see this cryptic pattern "[15678]\."; leave a short note to remind the maintainer and the reviewers. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.mak.uname')
-rw-r--r--config.mak.uname4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.mak.uname b/config.mak.uname
index f8e12c9626..fde196f63a 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -86,6 +86,10 @@ ifeq ($(uname_S),Darwin)
NEEDS_CRYPTO_WITH_SSL = YesPlease
NEEDS_SSL_WITH_CRYPTO = YesPlease
NEEDS_LIBICONV = YesPlease
+ # Note: $(uname_R) gives us the underlying Darwin version.
+ # - MacOS 10.0.* and MacOS 10.1.0 = Darwin 1.*
+ # - MacOS 10.x.* = Darwin (x+4).* for (1 <= x)
+ # i.e. "begins with [15678] and a dot" means "10.4.* or older".
ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
OLD_ICONV = UnfortunatelyYes
NO_APPLE_COMMON_CRYPTO = YesPlease