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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.