On 26 June 2012 11:21, Burkhard Plaum <[email protected]> wrote: > By the way is there an option for gcc (I have 4.4.3), which > helps me tracking those underlinking errors?
-Wl,--no-allow-shlib-undefined (with GNU's ld) will force to link against all the needed libraries when creating a library. It's not the default because of some specific cases (the library needs symbols from an executable or there are different implementations of an API with different sonames, e.g. BLAS). But normal libraries should indeed use it. -Wl,--no-copy-dt-needed-entries (with GNU's ld) will force to include all libraries when creating an executable. Otherwise it could take dependencies indirectly from other libraries included in the command line. Would be good to have, but this is already the new default since binutils 2.22. If you don't use it (not sure right now), -Wl,--as-needed is also something good to use. It will avoid adding unneeded dependencies even if they are included in the command line. It's the default for openSUSE, but not in upstream binutils. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gmerlin-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gmerlin-general
