[Buildroot] Naming of libraries.

Rob Landley rob at landley.net
Sat Nov 4 23:48:41 UTC 2006

On Friday 03 November 2006 3:15 am, Thomas Lundquist wrote:
> I am making packages for qwt and gd and I ended up with pondering about
> what to call the package.
> It does look like all libraries are prefixed with "lib" but most of them
> have lib prefixed in their name anyway.
> Couldn't find anything in the docs either.
> So, should all libraries be prefixed with "lib"?

When you tell gcc "gcc -lcurses" it looks for libcurses in the library search 
path.  Because gcc looks for things starting with "lib", people add that to 
their library names to use gcc.  (Everybody agrees ".exe" is stupid for 
executables, and libraries already have .a or .so anyway, but this is the FSF 
we're talking about.  Making sense was never a strong suit with them.)

(And yes, I honestly think they believe "-liberty" as a command line option is 
funny or something, hence libiberty.a)

"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery

More information about the buildroot mailing list