diff options
Diffstat (limited to 'chapter05/bzip2-inst.xml')
-rw-r--r-- | chapter05/bzip2-inst.xml | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/chapter05/bzip2-inst.xml b/chapter05/bzip2-inst.xml index 33cc1e80f..c7d383142 100644 --- a/chapter05/bzip2-inst.xml +++ b/chapter05/bzip2-inst.xml @@ -8,30 +8,16 @@ 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 CC="gcc -static -s"</userinput></screen></para> - -<para>The meaning of the make option is:</para> - -<itemizedlist> -<listitem><para><userinput>CC="gcc -static -s"</userinput>: The Bzip2 package -does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set -the <emphasis>CC</emphasis> variable which defines which compiler to use. -The <emphasis>-static</emphasis> option tells the compiler to link all -programs statically.</para></listitem> -</itemizedlist> - -<para>And finish off installing the package:</para> - -<para><screen><userinput>make PREFIX=$LFS/static install</userinput></screen></para> - -<para>The meaning of the make option is:</para> - -<itemizedlist> -<listitem><para><userinput>PREFIX=$LFS/static</userinput>: Instead of -passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script, -we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal -(since there is no configure script present).</para></listitem> -</itemizedlist> +<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> |