Opened 14 years ago

Closed 14 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:


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 Changed 14 years ago by tobias

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

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

make install

comment:2 Changed 14 years ago by Jim Gifford

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.