GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access