On Tue, 2010-02-09 at 13:56 +0000, Richard W.M. Jones wrote:
On Tue, Feb 09, 2010 at 06:55:11AM -0500, Neal Becker wrote:
Will there we a switch to give me the old behavior? I might want this for my own legacy code.
I have not tried it, but apparently --as-needed (or from gcc use -Wl,--as-needed):
--as-needed --no-as-needed This option affects ELF DT_NEEDED tags for dynamic libraries mentioned on the command line after the --as-needed option. Normally the linker will add a DT_NEEDED tag for each dynamic library mentioned on the command line, regardless of whether the library is actually needed or not. --as-needed causes a DT_NEEDED tag to only be emitted for a library that satisfies an undefined symbol reference from a regular object file or, if the library is not found in the DT_NEEDED lists of other libraries linked up to that point, an undefined symbol reference from another dynamic library. --no-as-needed restores the default behaviour.
No, you mean --add-needed.
- ajax