diff options
Diffstat (limited to 'chapter05/xz.xml')
-rw-r--r-- | chapter05/xz.xml | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/chapter05/xz.xml b/chapter05/xz.xml index ea1ea4966..83e4a96d6 100644 --- a/chapter05/xz.xml +++ b/chapter05/xz.xml @@ -45,29 +45,32 @@ <para>Prepare Xz for compilation:</para> -<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> +<screen><userinput remap="configure">./configure --prefix=/usr \ + --host=$LFS_TGT \ + --build=$(build-aux/config.guess) \ + --disable-static \ + --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen> <para>Compile the package:</para> <screen><userinput remap="make">make</userinput></screen> - <para>Compilation is now complete. As discussed earlier, running the test - suite is not mandatory for the temporary tools here in this chapter. To run - the Xz test suite anyway, issue the following command:</para> + <para>Install the package:</para> -<screen><userinput remap="test">make check</userinput></screen> +<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> - <para>Install the package:</para> + <para>Make sure that all essential files are in the correct directory:</para> -<screen><userinput remap="install">make install</userinput></screen> +<screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin +mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib +ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so</userinput></screen> </sect2> <sect2 role="content"> <title/> - - <para>Details on this package are located in - <xref linkend="contents-xz" role="."/></para> + <para>Details on this package are located in<!-- TODO + <xref linkend="contents-xz" role="."/> --></para> </sect2> |