[PATCH] ugly binutils- bug

Kelledin kelledin+LFS at skarpsey.dyndns.org
Mon May 26 18:34:09 PDT 2003

On Monday 26 May 2003 08:10 pm, Greg Schafer wrote:
> On Mon, May 26, 2003 at 07:50:46PM -0500, Kelledin wrote:
> > The attached patch appears to fix ld.
> If you had been using a recent HJL release then you wouldn't
> have hit the bug :-)

Yup--I noticed that, and considered pointing it out myself, but 
then I figured you'd probably do it for me.  Thanx. ;)

> NOTE - any makefile/build system that passes a zillion copies
> of -l stuff on the command line to ld is utterly broken anyhow.

As for that, isn't there a mythical "patched" version of libtool 
that prunes out those crappy duplicates?  libtool is the real 
problem here--it takes everything wholesale from relevant .la 
scripts and doesn't bother to sort any of it out.

Perhaps the order of -L and -l options matters, but when you have 
"-lpthread -lpthread -lpthread -lpthread -lpthread"...obviously 
it's no harm at all to condense that.

Maybe I'll try to hack on the libtool script myself to fix that.  
Shouldn't be that hard...

"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list