From: Roland McGrath Date: Sun, 19 Dec 2004 23:44:07 +0000 (+0000) Subject: * iconv/Makefile (test-iconvconfig): New target. X-Git-Tag: cvs/fedora-glibc-20041219T2331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff06ca8d203955505886309f5da257a64f5407e4;p=thirdparty%2Fglibc.git * iconv/Makefile (test-iconvconfig): New target. [$(cross-compiling) != yes] (xtests): Depend on it. --- diff --git a/ChangeLog b/ChangeLog index 839475ddd7e..d15688c3ae5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-12-19 Roland McGrath + * iconv/Makefile (test-iconvconfig): New target. + [$(cross-compiling) != yes] (xtests): Depend on it. + * iconv/iconvconfig.c (nostdlib, output_file, output_file_len): New variables. (options, parse_opt, main): Take new options --nostdlib and diff --git a/iconv/Makefile b/iconv/Makefile index fe0c453e7bd..40c7cbcdd3b 100644 --- a/iconv/Makefile +++ b/iconv/Makefile @@ -78,3 +78,15 @@ $(inst_bindir)/iconv: $(objpfx)iconv_prog $(+force) $(objpfx)iconv_prog: $(iconv_prog-modules:%=$(objpfx)%.o) $(objpfx)iconvconfig: $(iconvconfig-modules:%=$(objpfx)%.o) + +ifneq ($(cross-compiling),yes) +xtests: test-iconvconfig +endif + +.PHONY: test-iconvconfig +test-iconvconfig: /dev/null $(objpfx)iconvconfig + tmp=$(objpfx)gconv-modules.cache.$$$$; \ + rm -f $$tmp; \ + $(make-test-out) --output=$$tmp --nostdlib $(inst_gconvdir) && \ + cmp $$tmp $(inst_gconvdir)/gconv-modules.cache && \ + rm -f $$tmp