On Wed, Jan 11, 2006 at 09:59:57PM +0100, Josselin Mouette wrote:
> It looks like libtool likes, when building libraries, to reorder 
> arguments:
> 
> When linking this module (this can be found in the control-center build logs):
> /bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2 -Wall -Wextra  -Wl,-O1 
> -Wl,--as-needed -o libtheme-method.la -rpath 
> /usr/local/lib/gnome-vfs-2.0/modules -module -avoid-version 
> -export-symbols-regex 'vfs_module_.*' theme-method.lo -pthread  -lgnomevfs-2 
> -lbonobo-2 -lgconf-2 -lgobject-2.0 -lbonobo-activation -lORBit-2 -lm 
> -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 ../../capplets/common/libcommon.la

libcommon.la seems to be a conviences lib.  You're linking to it
staticly, and I think this is causing you the most problems.
Because it's a conviences lib it's also adding all the dependency
libraries.

> I don't know for other options, but --as-needed doesn't work if 
> specified after the libraries.

Yes, --as-needed is only for the libraries that follow it.

> In this particular case it makes the package having a really wrong 
> dependency on libgamin, making it incompatible with fam, but that's only 
> a consequence of not using --as-needed.

I think we should try avoiding having all those libs on the
command line that you don't need, instead of using --as-needed.

I suggest if you create a convience library, you don't link any
libraries to it at that time.  Instead, when you are linking in
the convience libraries to something, at that point you should
add those libraries.  This will avoid libtool from adding all the
depedency libraries on the command line.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to