[Buildroot] On the usefulness of .la files and .pc files
s.neumann at phase-zero.de
Wed Mar 18 17:24:45 UTC 2009
On Wed, 2009-03-18 at 17:44 +0100, Thomas Petazzoni wrote:
> When compiling libraries using libtool, a .la file gets installed
> in /usr/lib. It defines several informations such as :
> * The names of the library ;
> * The dependencies of the library ;
> * The directory where the library is installed ;
> * A few other informations.
This tells libtool how to link a particular library. This is mainly
useful on platforms that need libraries to be explicitly linked. On
Linux this is actually not needed and you may safely remove those files.
> Many libraries also install a .pc file in /usr/lib/pkgconfig/. It also
> describe the dependencies, the library name, the flags to compile new
> applications/libraries on top of the library, etc.
This gives hints on to compile stuff against the library. It is much
more useful than the .la files as it allows to easily check for the
presence of a library, it's version, dependencies and what compiler
flags are needed.
More information about the buildroot