Opened 16 years ago
Closed 16 years ago
#198 closed task (fixed)
lzma links against libstdc++
Reported by: | tobias | Owned by: | |
---|---|---|---|
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 , 16 years ago
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
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