man gcc wrote: |
---|
The only difference between using an -l option and specifying a file name is that -l surrounds library with lib and .a (or .so) and searches several directories. The directories searched include several standard system directories plus any that you specify with -L. |