lfs/chapter05/bzip2-inst.xml

24 lines
680 B
XML
Raw Normal View History

<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of Bzip2</title>
<para>Since the Bzip2 package has no configure script we can't prepare it
for compilation. Instead we just run the <userinput>make</userinput>
program and start compiling, with a few variables changed to suit our
environment:</para>
<para><screen><userinput>make -f Makefile-libbz2_so
make LDFLAGS="-s"
make check
make PREFIX=/stage1 install
yes | cp bzip2-shared /stage1/bin/bzip2
ln -s libbz2.so.1.0 libbz2.so
cp -a libbz2.so* /stage1/lib
rm -f /stage1/bin/{bunzip2,bzcat}
ln -s bzip2 /stage1/bin/bunzip2
ln -s bzip2 /stage1/bin/bzcat</userinput></screen></para>
</sect2>