bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

userspec-tests: cygwin link failure due to missing -lintl


From: Simon Josefsson
Subject: userspec-tests: cygwin link failure due to missing -lintl
Date: Tue, 16 Feb 2010 19:27:33 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Building on Windows XP + Cygwin fails:

http://autobuild.josefsson.org/gnulib/log-201002152214904002000.txt

gcc -std=gnu99  -g -O2  -Wl,--as-needed -o test-userspec.exe test-userspec.o 
../gllib/libgnu.a 
../gllib/libgnu.a(userspec.o): In function `parse_with_separator':
/home/Simon/gnulib/build/gllib/userspec.c:227: undefined reference to 
`_libintl_gettext'
../gllib/libgnu.a(xalloc-die.o): In function `xalloc_die':
/home/Simon/gnulib/build/gllib/xalloc-die.c:34: undefined reference to 
`_libintl_gettext'
../gllib/libgnu.a(error.o): In function `print_errno_message':
/home/Simon/gnulib/build/gllib/error.c:153: undefined reference to 
`_libintl_gettext'
collect2: ld returned 1 exit status
make[3]: *** [test-userspec.exe] Error 1

I'll commit the patch below unless anyone objects.

/Simon

diff --git a/ChangeLog b/ChangeLog
index 1609f87..889b4f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-16  Simon Josefsson  <address@hidden>
+
+       * modules/userspec-tests (test_userspec_LDADD): Add variable, for
+       linking with -lintl.
+
 2010-02-15  Jim Meyering  <address@hidden>
 
        maint.mk: mark syntax-check sc_*.m rules as .PHONY
diff --git a/modules/userspec-tests b/modules/userspec-tests
index 0d955ba..a522857 100644
--- a/modules/userspec-tests
+++ b/modules/userspec-tests
@@ -9,3 +9,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-userspec
 check_PROGRAMS += test-userspec
+test_userspec_LDADD = $(LDADD) @LIBINTL@




reply via email to

[Prev in Thread] Current Thread [Next in Thread]