automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

don't install .la do install .so


From: Paul Elliott
Subject: don't install .la do install .so
Date: Mon, 21 Mar 2011 10:52:08 -0500
User-agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.5.1; i686; ; )

According to the Fedora Packaging:Guidelines
http://fedoraproject.org/wiki/Packaging/Guidelines

.la files should not be installed:
> Packaging Static Libraries
> 
> Packages including libraries should exclude static libs as far as possible
> (eg by configuring with --disable-static). Static libraries should only be
> included in exceptional circumstances. Applications linking against
> libraries should as far as possible link against shared libraries not
> static versions.
> 
> Libtool archives, foo.la files, should not be included. Packages using
> libtool will install these by default even if you configure with
> --disable-static, so they may need to be removed before packaging. Due to
> bugs in older versions of libtool or bugs in programs that use it, there
> are times when it is not always possible to remove *.la files without
> modifying the program. In most cases it is fairly easy to work with
> upstream to fix these issues. Note that if you are updating a library in a
> stable release (not devel) and the package already contains *.la files,
> removing the *.la files should be treated as an API/ABI change -- ie:
> Removing them changes the interface that the library gives to the rest of
> the world and should not be undertaken lightly.

How do I create a Makefile.am for a shared library so that make install will 
not install the .la file but will install the .so?


--
Paul Elliott                               1(512)837-1096
address@hidden               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]