Tom G. Christensen wrote on 2009-08-14: > Unfortunately another one just turned up: > gcc -std=gnu99 -g -O2 -L/usr/tgcware/lib -Wl,-R,/usr/tgcware/lib > -Wl,-z,ignore > -o test-getopt test-getopt.o ../gllib/libgnu.a -lm > Undefined first referenced > symbol in file > libintl_gettext ../gllib/libgnu.a(getopt.o)
I reproduce it by compiling ./gnulib-tool --create-testdir --dir=... --with-tests getopt-gnu gettext on a MacOS X machine that has GNU libintl installed. This fixes it. Thanks. 2009-08-23 Bruno Haible <br...@clisp.org> Avoid test link errors when the modules getopt-gnu, gettext are used. * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD. Reported by Tom G. Christensen <t...@jupiterrise.com>. *** modules/getopt-posix-tests.orig 2009-08-23 22:59:30.000000000 +0200 --- modules/getopt-posix-tests 2009-08-23 22:58:09.000000000 +0200 *************** *** 12,14 **** --- 12,15 ---- Makefile.am: TESTS += test-getopt check_PROGRAMS += test-getopt + test_getopt_LDADD = $(LDADD) $(LIBINTL)