I wonder if there is any difference between
gcc foo.c -lsomething
and
gcc foo.c libsomething.a
in terms of th