[H-GEN] statically compiling program

Jason Parker-Burlingham jasonp at panix.com
Mon Nov 7 01:50:00 EST 2005


On Sun, Nov 06, 2005 at 09:52:04PM -0800, Anthony Irwin wrote:

> There are a couple of programs that I use that use older libraries and
> special non-common options turned on in those libraries and I have
> seen an article that suggests compiling the libraries and program in
> your home directory using ?prefix=/home/user/program and
> ?library-path-parameter-for-program=/path/to/custom/library when
> compiling.
> 
> I was wondering if there is an easy was to statically compile the
> program to include the special libraries that I have compiled so I can
> turn it into a package and use it on pretty much any system i use with
> no stuffing around.

I tend to compile everything with --prefix=${HOME}/usr or the equivalent
for other build systems; I rely on libc, X libs, widget libraries if
necessary and find that it generally works.

If your home directory goes with you when you log into another system,
that should be all that's required.  If the other systems don't have the
same libraries installed as yours, then something isn't right, in my
opinion.  If your home directory doesn't travel with you, why bother
hand-compiling stuff into $HOME in the first place?
-- 
Jason Parker-Burlingham
<jasonp at panix.com>
(Watch this space)




More information about the General mailing list