[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnulib tests vs. LDADD
From: |
Eric Blake |
Subject: |
gnulib tests vs. LDADD |
Date: |
Tue, 3 Apr 2007 17:45:09 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
CVS findutils uses gnulib-tool --with-tests when importing. But on cygwin,
compilation then fails in the gnulib-created directory:
gcc -g2 -Wall -Werror -o test-dirname.exe test-
dirname.o ../gnulib/lib/libgnulib.a
../gnulib/lib/libgnulib.a(xalloc-die.o): In function `xalloc_die':
/home/eblake/findutils/gnulib/lib/xalloc-die.c:35: undefined reference to
`_libintl_gettext'
collect2: ld returned 1 exit status
make[4]: *** [test-dirname.exe] Error 1
It looks like gnulib needs to take its own advice when creating the Makefile.am
for the tests directory, since I noticed the following message from gnulib-tool:
You may need to use the following Makefile variables when linking.
Use them in <program>_LDADD when linking a program, or
in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
$(LIB_CLOCK_GETTIME)
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
but see no evidence of libintl being linked into test-dirname.
--
Eric Blake
- gnulib tests vs. LDADD,
Eric Blake <=