Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Naming of libraries.
@ 2006-11-03  8:15 Thomas Lundquist
  2006-11-04 23:48 ` Rob Landley
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Lundquist @ 2006-11-03  8:15 UTC (permalink / raw)
  To: buildroot


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"?


Thomas.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Naming of libraries.
  2006-11-03  8:15 [Buildroot] Naming of libraries Thomas Lundquist
@ 2006-11-04 23:48 ` Rob Landley
  2006-11-05  0:10   ` don
  2006-11-05  8:27   ` Thomas Lundquist
  0 siblings, 2 replies; 4+ messages in thread
From: Rob Landley @ 2006-11-04 23:48 UTC (permalink / raw)
  To: buildroot

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)

Rob
-- 
"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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Naming of libraries.
  2006-11-04 23:48 ` Rob Landley
@ 2006-11-05  0:10   ` don
  2006-11-05  8:27   ` Thomas Lundquist
  1 sibling, 0 replies; 4+ messages in thread
From: don @ 2006-11-05  0:10 UTC (permalink / raw)
  To: buildroot

On Sat, Nov 04, 2006 at 06:48:41PM -0500, Rob Landley wrote:
> 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.)

This convention was in Unix long before the FSF came along, don't blame
them.

Don Reid

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Naming of libraries.
  2006-11-04 23:48 ` Rob Landley
  2006-11-05  0:10   ` don
@ 2006-11-05  8:27   ` Thomas Lundquist
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Lundquist @ 2006-11-05  8:27 UTC (permalink / raw)
  To: buildroot

On Sat, Nov 04, 2006 at 06:48:41PM -0500, Rob Landley wrote:
> 
> 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.)

hehe, ok.

the question was more of a naming convention issue in buildroot but I
guess it's just like that for other purposes.

(slang and ncurses are not prefixed with lib, so I guess it's no real
issue.)

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

but it is :=)


Thomas.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-05  8:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03  8:15 [Buildroot] Naming of libraries Thomas Lundquist
2006-11-04 23:48 ` Rob Landley
2006-11-05  0:10   ` don
2006-11-05  8:27   ` Thomas Lundquist

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox