Linking With Additional Libraries
Although the compiler drivers often ensure that appropriate libraries
are specified to the link-editor, frequently you must supply your
own. Shared objects and archives can be specified by explicitly
naming the input files required to the link-editor. However, a more
common and more flexible method involves using the link-editor's
-l
option.