Re: first problem solved, another found with libtool
On Mon, Jan 28, 2002 at 04:32:06PM -0500, Glenn Maynard wrote:
> > it can be observed by anybody having installed lib{p,a}spell-dev, please
> > use "grep dependency_libs /usr/lib/lib{p,a}spell.la".
>
> Why are .la files ending up in /usr/lib? AFAIK, they're just libtool's
> working files in .../.libs, and only .so and .a files should ever get
> installed. I see quite a number of them in /usr/lib. (Look at it; note
> that it has information about how the library is going to be installed,
> etc; it's not meant to be installed itself.)
http://www.debian.org/doc/debian-policy/ch-files.html#s11.2
11.2 Libraries
[...]
An ever increasing number of packages are using libtool to do their linking.
The latest GNU libtools (>= 1.3a) can take advantage of the metadata in the
installed libtool archive files (*.la files). The main advantage of
libtool's .la files is that it allows libtool to store and subsequently
access metadata with respect to the libraries it builds. libtool will search
for those files, which contain a lot of useful information about a library
(such as library dependency information for static linking). Also, they're
essential for programs using libltdl.[38]
Packages that use libtool to create shared libraries should include the .la
files in the -dev package, unless the package relies on libtool's libltdl
library, in which case the .la files must go in the run-time library
package.
--
- mdz
Reply to: