Libtool & libraries

Szombathelyi György gyurco at freemail.hu
Wed May 26 14:44:39 BST 2004


Arend van Beelen jr. írta:

> On Wednesday 26 May 2004 13:42, Szombathelyi György wrote:
> [snip]
> 
>>I found the tool which helps in linking to older glibc versions and
>>removes bogus dependencies (apbuild). I will try it. Is it possible to
>>integrate this tool into KDE's build system?
> 
> I assume it's possible. However whether everyone would agree on letting it in 
> is another thing, I'm afraid. But you can always propose it, of course ;) I 
> do have gotten a binreloc-like functionality (also from autopackage.org) 
> integrated in KStandardDirs.
> 
I tested apbuild. What I found out that it doesn't need special 
integration (hovewer it's possible). Only need to specify two enviroment 
variables to override the default compilers (CC=apgcc CXX=apg++). I 
compiled kdeadmin/kcron. The results of 'readelf -d kcron':

without apbuild (only relevant parts):

  0x00000001 (NEEDED)  Shared library: [libkdeprint.so.4]
  0x00000001 (NEEDED)  Shared library: [libkparts.so.2]
  0x00000001 (NEEDED)  Shared library: [libkio.so.4]
  0x00000001 (NEEDED)  Shared library: [libkdeui.so.4]
  0x00000001 (NEEDED)  Shared library: [libkdesu.so.4]
  0x00000001 (NEEDED)  Shared library: [libkdecore.so.4]
  0x00000001 (NEEDED)  Shared library: [libDCOP.so.4]
  0x00000001 (NEEDED)  Shared library: [libdl.so.2]
  0x00000001 (NEEDED)  Shared library: [libresolv.so.2]
  0x00000001 (NEEDED)  Shared library: [libart_lgpl_2.so.2]
  0x00000001 (NEEDED)  Shared library: [libkdefx.so.4]
  0x00000001 (NEEDED)  Shared library: [libqt-mt.so.3]
  0x00000001 (NEEDED)  Shared library: [libpng12.so.0]
  0x00000001 (NEEDED)  Shared library: [libXext.so.6]
  0x00000001 (NEEDED)  Shared library: [libX11.so.6]
  0x00000001 (NEEDED)  Shared library: [libSM.so.6]
  0x00000001 (NEEDED)  Shared library: [libICE.so.6]
  0x00000001 (NEEDED)  Shared library: [libpthread.so.0]
  0x00000001 (NEEDED)  Shared library: [libXrender.so.1]
  0x00000001 (NEEDED)  Shared library: [libutil.so.1]
  0x00000001 (NEEDED)  Shared library: [libz.so.1]
  0x00000001 (NEEDED)  Shared library: [libstdc++.so.5]
  0x00000001 (NEEDED)  Shared library: [libgcc_s.so.1]
  0x00000001 (NEEDED)  Shared library: [libm.so.6]
  0x00000001 (NEEDED)  Shared library: [libc.so.6]

with apbuild:

  0x00000001 (NEEDED)  Shared library: [libkdeprint.so.4]
  0x00000001 (NEEDED)  Shared library: [libkparts.so.2]
  0x00000001 (NEEDED)  Shared library: [libkio.so.4]
  0x00000001 (NEEDED)  Shared library: [libkdeui.so.4]
  0x00000001 (NEEDED)  Shared library: [libkdesu.so.4]
  0x00000001 (NEEDED)  Shared library: [libkdecore.so.4]
  0x00000001 (NEEDED)  Shared library: [libDCOP.so.4]
  0x00000001 (NEEDED)  Shared library: [libkdefx.so.4]
  0x00000001 (NEEDED)  Shared library: [libqt-mt.so.3]
  0x00000001 (NEEDED)  Shared library: [libpthread.so.0]
  0x00000001 (NEEDED)  Shared library: [libstdc++.so.5]
  0x00000001 (NEEDED)  Shared library: [libgcc_s.so.1]
  0x00000001 (NEEDED)  Shared library: [libm.so.6]
  0x00000001 (NEEDED)  Shared library: [libc.so.6]

The results are convincing - no unneeded dependencies.

Bye,
György





More information about the kde-core-devel mailing list