bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] gnulib vs LIBOBJS,LIBINTL,LIBICONV...


From: Bruno Haible
Subject: Re: [bug-gnulib] gnulib vs LIBOBJS,LIBINTL,LIBICONV...
Date: Tue, 4 Oct 2005 18:13:25 +0200
User-agent: KMail/1.5

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





reply via email to

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