9.5. Executing Uninstalled Binaries

If you look at the contents of the hello program you built in the preceding section, you will see that it is not actually a binary at all, but a shell script that sets up the environment so that when the real binary is called it finds its shared libraries in the correct locations. Without this script, the runtime loader might not be able to find the uninstalled libraries. Or worse, it might find an old version and load that by mistake!

In practice, this is all part of the unified interface libtool presents so you needn't worry about it most of the time. The exception is when you need to look at the binary with another program, to debug it for example:

 $ ls hello hello.lo libhello.la main.c trim.lo hello.c ...

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.