summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-10-25 10:59:23 +0100
committerPádraig Brady <P@draigBrady.com>2012-10-25 12:47:16 +0100
commit88a6201917cad43fd4efea0f1c34c891b70a7414 (patch)
treeaee5607d913e95597ac9091184de093e7c38d15c /cfg.mk
parentc83c48411dc7feb8c72b08f918320739940c3a9d (diff)
downloadcoreutils-88a6201917cad43fd4efea0f1c34c891b70a7414.tar.xz
build: ensure factor links the iconv library
* src/local.mk (src_factor_LDADD): Append $(LIBICONV). * crg.mk (sc_check-I18N-AUTHORS): A new syntax check rule to ensure we add LIBICONV where appropriate. * THANKS.in: Add the reporter. Reported by Christian Jullien Syntax check suggested by Jim Meyering
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 43fb22fea..40ece55d3 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -181,6 +181,14 @@ sc_check-AUTHORS: $(all_programs)
&& diff $(au_actual) $(au_dotdot) \
&& rm -f $(au_actual) $(au_dotdot)
+# Ensure programs with authors with non ASCII names link with LIBICONV
+sc_check-I18N-AUTHORS:
+ @(cd $(srcdir)/src && \
+ for i in $$(git grep -l -w proper_name_utf8 *.c|sed 's/\.c//'); do \
+ grep -E "^src_$${i}_LDADD"' .?= .*\$$\(LIBICONV\)' local.mk > \
+ /dev/null || { echo FAIL $$i; exit 1; }; \
+ done)
+
# Look for lines longer than 80 characters, except omit:
# - program-generated long lines in diff headers,
# - tests involving long checksum lines, and