9.6. Installing a Library

Now that the library and an executable that links with it have been successfully built, they can be installed. For the sake of this example, I cp the objects to their destination, although libtool would be just as happy if I were to use install with the long, requisite list of parameters.

It is important to install the library to the '-rpath' destination specified when it was linked earlier, or at least that it be visible from that location when the runtime loader searches for it. This rule is not enforced by libtool, because it is often desirable to install libraries to a staging area (when making a binary package from a virtual root directory, for example). Of course, the package must ultimately install the library ...

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.