Skip to Content.
Sympa Menu

baslinux - Re: [BL] compiling a new BL package

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: qwms-avib AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] compiling a new BL package
  • Date: Sat, 2 Aug 2003 09:18:41 +1200

James Miller wrote:
>
> how does one "make a completely static binary"?
> Some extra options/arguments must be required
> during the process, right? Like . . . ?

I hope somebody else is going to answer this, because I'm
just a hacker when it comes to compiling. I know that when
you are compiling without a make-file, you add the -static
parameter to the gcc command. However, I'm not sure that
using the -static parameter with the make command will over-
ride all the settings in the make-file. As I understand it,
the make file specifies which libraries to use (static or
dynamic). So, one way to make a static binary is to specify
static libraries in the make file. The problem is: some
source packages have many make files, so changing all of
those would be a pain. Fortunately, most of those come
with a configure script, which usually allows you to specify
which libraries to use. Execute "configure --help" to see
the options.

As I said above, I hope somebody knowledgeable will join in.
My compiling is pretty hit-or-miss. I just try different
parameters until it works (or not). The fact that I ended
up with a static AbiWord came as a complete surprise to me.
None of my six previous compiles of AbiWord worked on BL2,
so I was just experimenting with different parameters.

Cheers,
Steven







Archive powered by MHonArc 2.6.24.

Top of Page