On 26 June 2012 16:05, Burkhard Plaum <[email protected]> wrote: > Hi, > > Am 26.06.2012 12:46, schrieb Cristian Morales Vega: >> 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. > > --no-allow-shlib-undefined fails here because of errors from other > libs. But --no-undefined works and was added for linking libraries
Yes, true. >> -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. That would have prevented the bugs creating executables (gmerlin_visualizer_slave, gmerlin_alsamixer, etc.). It's actually a ld option, not gcc. But don't worry, as said the latest binutils already uses it by default. ------------------------------------------------------------------------------ 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
