Hi,

While testing coreutils-7.0 on Cygwin, test-getdate did not link:

gcc -std=gnu99  -g -O2  -Wl,--as-needed -o test-getdate.exe test-getdate.o 
libtests.a ../lib/libcoreutils.a libtests.a   
../lib/libcoreutils.a(xalloc-die.o): In function `xalloc_die':
/cygdrive/c/Export/gnuprog/coreutils-7.0/lib/xalloc-die.c:34: undefined 
reference to `_libintl_gettext'
../lib/libcoreutils.a(error.o): In function `error_tail':
/cygdrive/c/Export/gnuprog/coreutils-7.0/lib/error.c:125: undefined reference 
to `_libintl_gettext'
collect2: ld returned 1 exit status

This should fix it. Applied.

2008-10-08  Bruno Haible  <[EMAIL PROTECTED]>

        * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.

--- modules/getdate-tests.orig  2008-10-09 00:17:33.000000000 +0200
+++ modules/getdate-tests       2008-10-09 00:17:33.000000000 +0200
@@ -8,4 +8,4 @@
 Makefile.am:
 TESTS += test-getdate
 check_PROGRAMS += test-getdate
-test_getdate_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+test_getdate_LDADD = $(LDADD) @LIBINTL@ $(LIB_CLOCK_GETTIME)



Reply via email to