[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [PATCH] Libtool & indirect dependencies
From:       Szombathelyi "György" <gyurco () freemail ! hu>
Date:       2004-05-30 15:07:07
Message-ID: 200405301707.12713.gyurco () freemail ! hu
[Download RAW message or body]


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu

Hello!

I started a thread about how to _not_ link a lib/program to its indirect 
dependencies. It turned out that libtool links to all dependency_libs in 
the .la file. In a discussion at the libtool mailing list turned out that 
this problem may not easily solved by libtool, mainly because removing 
dependency_libs will break static library linking. 
So I started to look into 'ld', and found out that newer GNU ld's have the 
--as-needed flag, which is exactly what I was looking for. The only problem 
with this that if I specify a LDFLAGS=-Wl,--as-needed, libtool will insert 
this option _after_ the libraries to be linked, effectively disabling the 
expected behavior. My patch simply bring $compiler_options before any 
dependencies in libtool, so the --as-needed flag actually will have the 
desired effect. 
I already compiled kdelibs, kdebase and a couple of other modules with 
success, and greatly reduced dependencies! 
Is my patch acceptable? If it is, then I'll try to push this to libtool 
upstream, too.

Regards,
György

["kde-libtool.diff.gz" (application/x-gzip)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic