Opened 16 years ago

Closed 16 years ago

#198 closed task (fixed)

lzma links against libstdc++

Reported by: tobias Owned by: clfs-commits@…
Priority: minor Milestone:
Component: BOOK Version: CLFS Standard GIT
Keywords: Cc:

Description

lzma, which is installed in /bin, links against libstdc++ which resides in /usr/lib64 and might therefore not be available in case of partition failure of /usr.

I would like to suggest to compile lzma statically, like:

[...] ./configure --prefix=/usr libdir=/lib make rm src/lzma/lzma make LDFLAGS=-all-static -C src/lzma [...]

Also I'm not sure why lzma libraries are installed into /lib, because lzma isn't using them anyway. Perhaps someone can enlighten me here?

PS: In multilib, a blank is missing in between CC="gcc ${BUILD64}" and ./configure.

Change History (2)

comment:1 by tobias, 16 years ago

Sorry for my bad styling, it was supposed to be:

./configure --prefix=/usr libdir=/lib
make
rm src/lzma/lzma
make LDFLAGS=-all-static -C src/lzma

make install

comment:2 by Jim Gifford, 16 years ago

Resolution: fixed
Status: newclosed

LZMA links to the libstdc++ library. If this becomes the compression tool of choice for initramfs, it will need to be modified. The LZMA codes depends on a SDK that was written in C++, and the author of lzma-utils utilized that SDK. Hopefully in the future there will be a C version and we can install this compression tool like Bzip2 and Gzip.

Note: See TracTickets for help on using tickets.