ld changed linking behaviour in precise?

Stefano Rivera stefanor at ubuntu.com
Wed Apr 18 14:29:15 UTC 2012

Hi Christoph (2012.04.18_16:18:18_+0200)
> The default of the linker flag --as-needed seems to be different
> compared to lucid and precise a few days ago.
> Assuming I diagnosed this correctly, was this change intentional?

Yes, see

> And for the future: Where can I find the defaults of such command line
> switches for gcc/ld? Are there any distro specific overrides? Because
> 'man ld' still tells me that --no-as-needed is the default...

This is the patch being applied:

It doesn't touch the manpage, that's clearly a bug :)


Stefano Rivera
  H: +27 21 461 1230 C: +27 72 419 8559

More information about the Ubuntu-devel-discuss mailing list