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
https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain

> 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:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/gcc-4.6/precise/view/head:/debian/patches/gcc-as-needed.diff

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

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 461 1230 C: +27 72 419 8559



More information about the Ubuntu-devel-discuss mailing list