[lokisetup] more on bz2

Timothee Besset ttimo at idsoftware.com
Sat Feb 23 15:00:35 EST 2002

heh .. what is your 'Virtual Build Box' :-)

As I said the problem isn't so much the dynamic dependency, but the fact
that static linking on bz2 produces broken setup and uninstall binaries
for me (which I can reproduce on two different distribs).

btw, after hacking the build stuff not to use bzip2 (I'm not familiar
enough with auto* to do this clean), I only had to modify files.c:

#if defined(HAVE_BZIP2_SUPPORT)
  #if defined(LIBBZ2_PREFIX)
    #define BZOPEN BZ2_bzopen
    #define BZDOPEN BZ2_bzdopen
    #define BZREAD BZ2_bzread
    #define BZWRITE BZ2_bzwrite
    #define BZERROR BZ2_bzerror
    #define BZCLOSE BZ2_bzclose
    #define BZOPEN bzopen
    #define BZDOPEN bzdopen
    #define BZREAD bzread
    #define BZWRITE bzwrite
    #define BZERROR bzerror
    #define BZCLOSE bzclose
  #define BZOPEN gzopen
  #define BZDOPEN gzdopen
  #define BZREAD gzread
  #define BZWRITE gzwrite
  #define BZERROR gzerror
  #define BZCLOSE gzclose


On Sat, 23 Feb 2002 14:49:14 -0500 (EST)
"Ryan C. Gordon" <icculus at clutteredmind.org> wrote:

> > So we can have better compressiion on files included with the
> > distribution. BZ2 can also be staticly linked. I believe the candy
> > cruncher installer has it like this.
> Actually, I've changed it to have the files uncompressed in the install
> image and use the --bzip2 flag with makeself.sh. Same results, but it's
> easier for someone to get at the files manually if Setup has a
> catastrophic failure (and probably better compression, since otherwise
> makeself is compressing a bzip2 file).
> The betas used it, though. To statically link it, I just removed the .so
> version of libbz2 from the Virtual Build Box, so that the linker was
> forced to do a static link. That's not really a good general solution.
> --ryan.

More information about the Lokisetup mailing list