Linker and Libraries Guide

Creating a Dynamic Executable

The following example combines the above points:


$ cc -o prog -R /home/lib -z ignore -z lazyload -B direct -L. \
-lfoo file1.o file2.o file3.o .....