[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linking with static library when using libtool, also c-client weirdness



Sorry, actually missed that at first -(

>From libtool info pages:

Link mode
=========

   "Link" mode links together object files (including library objects)
   to form another library or to create an executable program.

   MODE-ARGS consist of a command using the C compiler to create an
   output file (with the `-o' flag) from several object files.

   The following components of MODE-ARGS are treated specially:

   `-all-static'
   If OUTPUT-FILE is a program, then do not link it against
   any shared libraries at all.  If OUTPUT-FILE is a library, then only
   create a static library.

Hope that is a bit better regarding libtool, I'll look to see if I can
find any example sources that demonstrate this and followup if/when I
can.

Gordon Sadler

On Wed, Dec 20, 2000 at 12:58:43AM +0100, Petr Cech wrote:
> On Tue, Dec 19, 2000 at 06:01:55PM -0600 , Gordon Sadler wrote:
> > Sounds like you mean to link statically with c-client.a?
> > If so, you don't need to delete the .so, simply add c-client.a to list
> > of objects while linking.
> > 
> > gcc -o main main.o c-client.a
> 
> the catch is the magick word "libtool"
> 
> 				Petr Cech



Reply to: