[Fedora-packaging] libtool archives (.la files) and rpm packaging

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Fri Jun 9 20:21:50 UTC 2006


rdieter at math.unl.edu (Rex Dieter) writes:

> Had some spare cycles today, so thought I'd share my highly editorial take
> on libtool .la file with the world.  Enjoy.  
>
> http://www.math.unl.edu/~rdieter1/libtool-archives-suck.html

It is not (only) *.la which sucks but the whole 'libtool' suite:

* when having a package which provides multiple libraries which are
  linked together, you could create an efficient

  libfoo0 -> libfoo1 -> libfoo2 -> APP

  dependency chain. With libtool you will always end with


                           libfoo0 --,
              libfoo0 ---> libfoo1 ---> APP
              libfoo0 ---> libfoo2 --'
  libfoo0 --> libfoo1 --'


* libtool reorders linker options, so that

  | -Wl,--as-needed -lz -lfoo -lbar

  becomes

  | -lz -lfoo -lbar -Wl,--as-needed

  rendering the '-Wl,--as-needed' effectless

* libtool is a bloaty shell script slowing down the build process
  significantly

* integration into automake makes 'make -s' useless

* it creates alwyas RPATHs in multilib environments (except you apply
  unofficial patches)



Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20060609/e0fdac64/attachment.sig>


More information about the Fedora-packaging mailing list