Oskar Liljeblad asked: > Normally you're supposed to add LIBOBJS, LIBICONV, LIBINTL, ALLOCA etc to > *_LIBADD/LDADD. But are these still necessary when using Gnulib (and the > appropriate modules such as iconv, gettext, alloca)?
If your only use of LIBOBJS was for some autoconf-builtin AC_FUNC_* macros, that are shadowed by the corresponding gnulib macros, then you don't need to link with LIBOBJS; link with the lib/libgnu.la in your build directory instead. Likewise for ALLOCA. LIBICONV and LIBINTL are defined by the gnulib modules 'iconv', 'gettext', respectively. You need them in the command lines of the programs or libraries that make use of them. gnulib-tool doesn't add them to LDADD because that would likely be in the wrong Makefile.am and because gnulib-tool cannot know the requirements of your programs. (Btw, reminder: When you use libtool for linking your programs, use LTLIBICONV and LTLIBINTL instead of LIBICONV and LIBINTL.) Bruno _______________________________________________ bug-gnulib mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnulib
