Hi, Am 26.06.2012 12:46, schrieb Cristian Morales Vega: > On 26 June 2012 11:21, Burkhard Plaum <pl...@ipf.uni-stuttgart.de> 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.
--no-allow-shlib-undefined fails here because of errors from other libs. But --no-undefined works and was added for linking libraries > -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. And that would have prevented my bugs, which you fixed with your patch? Unfortunately my gcc doesn't have this option so I can't test it before the next system upgrade. > 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. No I didn't use this, but it seems to make sense. Added it for linking of executables Thanks for the input. Burkhard ------------------------------------------------------------------------------ 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 Gmerlin-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmerlin-general