summaryrefslogtreecommitdiff
path: root/config.mak.uname
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-09-04 21:31:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-04 21:31:39 (GMT)
commitb571c25e33cc8d7ac1cae66e34ce60fa7a0a3b0a (patch)
treee6c83e3b6107a5aca60f85b5dac03020e4abea89 /config.mak.uname
parent0a866db570e520ce7b08d1eceefdeaa9d63b6704 (diff)
parent6c6ce21baa9b50d394bb8ed9878944504ffd57d8 (diff)
downloadgit-b571c25e33cc8d7ac1cae66e34ce60fa7a0a3b0a.zip
git-b571c25e33cc8d7ac1cae66e34ce60fa7a0a3b0a.tar.gz
git-b571c25e33cc8d7ac1cae66e34ce60fa7a0a3b0a.tar.bz2
Merge branch 'es/freebsd-iconv-portability'
Build fix. * es/freebsd-iconv-portability: config.mak.uname: resolve FreeBSD iconv-related compilation warning
Diffstat (limited to 'config.mak.uname')
-rw-r--r--config.mak.uname12
1 files changed, 11 insertions, 1 deletions
diff --git a/config.mak.uname b/config.mak.uname
index 2be2f19..e47af72 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -192,7 +192,17 @@ ifeq ($(uname_O),Cygwin)
endif
ifeq ($(uname_S),FreeBSD)
NEEDS_LIBICONV = YesPlease
- OLD_ICONV = YesPlease
+ # Versions up to 10.1 require OLD_ICONV; 10.2 and beyond don't.
+ # A typical version string looks like "10.2-RELEASE".
+ ifeq ($(shell expr "$(uname_R)" : '[1-9]\.'),2)
+ OLD_ICONV = YesPlease
+ endif
+ ifeq ($(firstword $(subst -, ,$(uname_R))),10.0)
+ OLD_ICONV = YesPlease
+ endif
+ ifeq ($(firstword $(subst -, ,$(uname_R))),10.1)
+ OLD_ICONV = YesPlease
+ endif
NO_MEMMEM = YesPlease
BASIC_CFLAGS += -I/usr/local/include
BASIC_LDFLAGS += -L/usr/local/lib