Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-20 Thread Bruno Haible
Ralf Wildenhues wrote: > I don't dispute > either that the module should be put into gnulib. However, I'd like to > avoid that gnulib ends up just dumping all needed libraries into one > variable, forcing gnulib users to bite and link against them all or use > $as_needed (whatever it's called): th

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-19 Thread Ralf Wildenhues
* Paul Eggert wrote on Mon, Jun 19, 2006 at 11:47:35AM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > BTW, are the bugs wrt. as-needed fixed on all systems now? > > Sorry, I don't know. I don't know what the bugs were. Would they > have affected coreutils? I don't know. One referen

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-19 Thread Paul Eggert
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > I'd like to avoid that gnulib ends up just dumping all needed > libraries into one variable, forcing gnulib users to bite and link > against them all or use $as_needed (whatever it's called): the > choice whether it's useful or not should clearly be pu

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-19 Thread Ralf Wildenhues
* Paul Eggert wrote on Mon, Jun 19, 2006 at 09:35:43AM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > One problem with generally using this is that libtool will track the > > library dependencies regardless of whether the library is actually > > needed or not -- it cannot know. > > 'ca

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-19 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > linktool gcc -o cp cp.o ../lib/libcoreutils.a $(LDADD) > > The idea would be that it removes -l options from the command line as long > as the link continues to succeed. 'vim' links this way. It would be nice to have something portable, but the naiv

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-19 Thread Paul Eggert
Albert Chin <[EMAIL PROTECTED]> writes: > --as-needed. Thanks for mentioning that. I assumed that since binutils "ld -z ignore" worked, that it paid attention to the "-z ignore" option. It doesn't; it ignores it (:-). I just now verified this by inspecting the source code; there is undocumente

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-17 Thread Albert Chin
On Sat, Jun 17, 2006 at 06:15:34PM +0200, Bruno Haible wrote: > Paul Eggert wrote: > > in coreutils CVS we're using a new gl_IGNORE_UNUSED_LIBRARIES > > macro (defined in m4/lib-ignore.m4) that tells the linker to omit > > references to libraries that are not actually used (this is the '-z > > igno

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-17 Thread Bruno Haible
Paul Eggert wrote: > in coreutils CVS we're using a new gl_IGNORE_UNUSED_LIBRARIES > macro (defined in m4/lib-ignore.m4) that tells the linker to omit > references to libraries that are not actually used (this is the '-z > ignore' option of the Solaris linker). > > At some point I was going to pro

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-16 Thread Ralf Wildenhues
Hello Paul, * Paul Eggert wrote on Fri, Jun 16, 2006 at 08:01:33PM CEST: > > [...] in coreutils CVS we're using a new gl_IGNORE_UNUSED_LIBRARIES > macro (defined in m4/lib-ignore.m4) that tells the linker to omit > references to libraries that are not actually used (this is the '-z > ignore' opti

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-16 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> The gettext module brings in the proper -I's to make gettext calls >> work, but doesn't bring in the library. > > This is normal. We specify the needed libraries for each program and > for each shared library separately. So that,

Re: [bug-gnulib] gettext: -lintl if necessary

2006-06-16 Thread Bruno Haible
Simon Josefsson wrote: > (Sorry if this is a dupe, didn't see it delivered.) > > The gettext module brings in the proper -I's to make gettext calls > work, but doesn't bring in the library. This is normal. We specify the needed libraries for each program and for each shared library separately. So