The Unix tradition is that a library called libfoo.a is passed to the compiler/linker using -lfoo

That is, the lib prefix and .a suffix is automatically assumed.