⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bzip2-n32.html

📁 CLFS(Cross-Compiled Linux From Scratch)的文档 Version CLFS-SVN-20060417
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <meta http-equiv="Content-Type" content=    "application/xhtml+xml; charset=iso-8859-1" />    <title>      10.55.&nbsp;Bzip2-1.0.3 N32 Libraries    </title>    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />    <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=    "text/css" media="print" />  </head>  <body id="lfs" class="CLFS-SVN-20060417-MIPS64-Multilib">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version          CLFS-SVN-20060417-MIPS64-Multilib        </h4>        <h3>          Chapter&nbsp;10.&nbsp;Installing Basic System Software        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="bzip2.html" title=          "Bzip2-1.0.3 32 Bit Libraries">Prev</a>          <p>            Bzip2-1.0.3 32 Bit Libraries          </p>        </li>        <li class="next">          <a accesskey="n" href="bzip2-64bit.html" title=          "Bzip2-1.0.3 64 Bit">Next</a>          <p>            Bzip2-1.0.3 64 Bit          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS64-Multilib">          Home</a>        </li>      </ul>    </div>    <div class="wrap" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          10.55. Bzip2-1.0.3 N32 Libraries        </h1>      </div>      <div class="package" lang="en" xml:lang="en">        <p>          The Bzip2 package contains programs for compressing and          decompressing files. Compressing text files with          <span><strong class="command">bzip2</strong></span> yields a much          better compression percentage than with the traditional          <span><strong class="command">gzip</strong></span>.        </p>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installation depends              on:</span></strong> <span class="seg">Bash, Binutils,              Coreutils, Diffutils, GCC, Glibc, Make, and Patch</span>            </div>          </div>        </div>      </div>      <div class="installation" lang="en" xml:lang="en">        <div class="titlepage">          <h2 class="sect2">            10.55.1. Installation of Bzip2          </h2>        </div>        <p>          We need to remove the tests since they won't work on a          multi-architecture build, and change the default lib path to          <tt class="filename">lib32</tt>:        </p>        <pre class="userinput"><kbd class="command">sed -i -e 's@^\(all:.*\) test@\1@g' \    -e 's@/lib\(/\| \|$\)@/lib32\1@g' Makefile</kbd></pre>        <p>          The Bzip2 package does not contain a <span><strong class=          "command">configure</strong></span> script. Compile it with:        </p>        <pre class="userinput"><kbd class="command">make -f Makefile-libbz2_so CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"make clean</kbd></pre>        <p>          The <em class="parameter"><tt>-f</tt></em> flag will cause Bzip2 to          be built using a different <tt class="filename">Makefile</tt> file,          in this case the <tt class="filename">Makefile-libbz2_so</tt> file,          which creates a dynamic <tt class="filename">libbz2.so</tt> library          and links the Bzip2 utilities against it.        </p>        <p>          Recompile the package using a non-shared library.        </p>        <pre class="userinput"><kbd class="command">make CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"</kbd></pre>        <p>          Install the libraries, make some necessary symbolic links, and          clean up:        </p>        <pre class="userinput"><kbd class="command">cp -v libbz2.a /usr/lib32cp -av libbz2.so* /lib32ln -sv ../../lib32/libbz2.so.1.0 /usr/lib32/libbz2.so</kbd></pre>      </div>      <div class="content" lang="en" xml:lang="en">        <p>          Details on this package are located in <a href=          "bzip2-64bit.html#contents-bzip2" title=          "10.56.2.&nbsp;Contents of Bzip2">Section&nbsp;10.56.2,          &ldquo;Contents of Bzip2.&rdquo;</a>        </p>      </div>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="bzip2.html" title=          "Bzip2-1.0.3 32 Bit Libraries">Prev</a>          <p>            Bzip2-1.0.3 32 Bit Libraries          </p>        </li>        <li class="next">          <a accesskey="n" href="bzip2-64bit.html" title=          "Bzip2-1.0.3 64 Bit">Next</a>          <p>            Bzip2-1.0.3 64 Bit          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS64-Multilib">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -