[Crash-utility] compiling statically?
Dave Anderson
anderson at prospeed.net
Thu Aug 25 00:30:06 UTC 2016
>> On Wed, 2016-08-24 at 15:00 -0400, Dave Anderson wrote:
>
> That's not a problem -- crash just needs to be compiled with "make lzo",
> which will add these lines to the CFLAGS.extra and LDFLAGS.extra files:
>
> -DLZO in the CFLAGS.extra file
> -llzo2 in the LDFLAGS.extra file
>
> and will delete diskdump.o. The subsequent rebuild will recompile
> diskdump.c with lzo compression support. You only have to enter
> "make lzo" once, as it's effect is sticky.
>
> This also requires the lzo, lzo-minilzo and lzo-devel packages to
> be installed so that the lzo compression library can get compiled in.
> But in your case, you would need to have the static versions of the
> lzo and lzo-minilzo packages.
Although -- unlike the zlib package which has a zlib-static rpm -- the
Red Hat lzo package set does not include static versions of the lzo and
lzo-minilzo libraries. So I don't know how you can get around that.
Dave
More information about the Crash-utility
mailing list