[Clfs-dev] Bzip2 shared libraries in tools

William Harrington kb0iic at berzerkula.org
Mon Jul 29 21:12:11 PDT 2013


Greetings,

in tools we only get libbz2.a and a static bzip2 binary.

Remove the libbz2.a and create the shared libs and have the dynamic  
bzip2 binary:

sed -i -e 's:ln -s -f $(PREFIX)/bin/:ln -s :' Makefile
make -f Makefile-libbz2_so CC="${CC}" AR="${AR}" RANLIB="${RANLIB}"
make clean
make CC="${CC}" AR="${AR}" RANLIB="${RANLIB}"
make PREFIX=/tools install
cp -v bzip2-shared /tools/bin
cp -av libbz2.so* /tools/lib
ln -sv libbz2.so.1.0 /tools/lib/libbz2.so
ls -l /tools/bin/{bunzip2,bzcat,bzip2}
rm /tools/lib/libbz2.a

Any thoughts?

Sincerely,

William Harrington



More information about the Clfs-dev mailing list