Re: Compile Squid (2.5) statically

From: Joey Coco <anesthes@dont-contact.us>
Date: Wed, 16 Jul 2003 11:57:28 -0500 (EST)

Hi,

> trivial, like any other application. Just tell the compiler to link
> statically rather than dynamic.

Hrmm.. Interestingly enough it is not working with a --statoc. or
-bdynamic but perhaps I have larger issue with my compiler..

> please note that you often get less efficient versions of several
> libraries when compiling statically. For example, if you compile an
> application statically to on RedHat Linux then you get the i386 version
> of the library rather than the more efficient i686 library. If you are
> using things like OpenSSL (https_port) then this can make a huge
> different (up to 100% speed increase measured)

What I was going to do was put together all the libraries I want it to use
on the devel box, and static it, that way on every machine I run this on
i'm using all the same libraries regardless of whats in the library path..

Kind of a strange application but I think it will save frustrationin the
long run when library xxx.so doesn't exist, or doesn't have a syscall that
it did on another machine..

-- Joe
Received on Wed Jul 16 2003 - 08:50:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:17 MST