Re: statically linking on Linux

Timothee Besset <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <[email protected]>
Well actually, the bad things are happening because of ar / multiple .a
files and how the GNU linker works. There are cyclic references cropping
up everywhere, it's pretty nasty. I have solved the problem now though,
after a regular build I do an ar x on all the .a and collapse the object
files back into a single .a file. That way I don't get any unresolved
anymore.

TTimo

On Mon, 30 Dec 2002 14:32:18 +0100
Richard Atterer <[email protected]> wrote:

> 
> On Mon, Dec 30, 2002 at 12:08:56AM +0100, Timothee Besset wrote:
> > Does anyone have successful experience statically linking against libwww
> > on Linux? Any particular pitfalls to avoid? I have everything working
> > fine with dynamic linking, but static linking is giving me a hard time.
> 
> Well, what errors do you get? And what command do you use for linking?
> 
> Are the static libs present in the directory output by
> "libwww-config --libs"?
> 
> For example, on my machine it prints out "-L/usr/lib -lwwwzip -lwwwinit 
> ..." and /usr/lib/libwwwzip.a etc. is present.
> 
> Cheers,
> 
>   Richard
> 
> -- 
>   __   _
>   |_) /|  Richard Atterer     |  CS student at the Technische  |  GnuPG key:
>   | \/¯|  http://atterer.net  |  Universität München, Germany  |  0x888354F7
>   ¯ '` ¯
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.