plugins are build with LDFLAGS="-Wl,--as-needed", with --no-defined stripped out. This is done automatically by Mandriva's patch to libtool.
But for shared libraries, if there are symbols defined in main program rather than library itself, that means libraries are only likely to work invoking the program, which is wrong. Because the library should be called by binary, rather the reverse.
2010/9/20 Timo Sirainen <tss@iki.fi>:
On Mon, 2010-09-20 at 16:10 +0100, Timo Sirainen wrote:
Also besides these, linking plugins will fail with those LDFLAGS. I'm not sure about that .. seems wrong to have plugins also link to libraries that the parent binary is required to be linking to anyway..
Oh, and even by linking all of the libraries, I don't think that's enough for those plugins that use some functions directly from a binary (like imap-* plugins using imap functions from imap binary).