summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-14 12:57:18 -0800
committerJunio C Hamano <gitster@pobox.com>2012-02-14 12:57:18 -0800
commit15c540fde9a72445c3ccfb6d81ce94ccf70b0016 (patch)
tree0f36ca58e4b721f36cdbc443cef69b7441e765fa /Makefile
parentd31f3785dcc10459540e2e185b6e25363f719256 (diff)
parentb5225286b226759262c0637058528af03226fba6 (diff)
downloadgit-15c540fde9a72445c3ccfb6d81ce94ccf70b0016.tar.gz
Merge branch 'dp/i18n-libcharset'
* dp/i18n-libcharset: Makefile: introduce CHARSET_LIB to link with -lcharset
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2bce23e5eb..a0de4e9c6b 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,10 @@ all::
# FreeBSD can use either, but MinGW and some others need to use
# libcharset.h's locale_charset() instead.
#
+# Define CHARSET_LIB to you need to link with library other than -liconv to
+# use locale_charset() function. On some platforms this needs to set to
+# -lcharset
+#
# Define LIBC_CONTAINS_LIBINTL if your gettext implementation doesn't
# need -lintl when linking.
#
@@ -1701,6 +1705,7 @@ endif
ifdef HAVE_LIBCHARSET_H
BASIC_CFLAGS += -DHAVE_LIBCHARSET_H
+ EXTLIBS += $(CHARSET_LIB)
endif
ifdef HAVE_DEV_TTY