📄 flags.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> 5.4. Build Flags </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-Sparc64-Multilib"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-Sparc64-Multilib </h4> <h3> Chapter 5. Constructing Cross-Compile Tools </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="variables.html" title= "Build Variables">Prev</a> <p> Build Variables </p> </li> <li class="next"> <a accesskey="n" href="linux-libc-headers.html" title= "Linux-Libc-Headers-2.6.12.0">Next</a> <p> Linux-Libc-Headers-2.6.12.0 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 5. Constructing Cross-Compile Tools">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-Sparc64-Multilib"> Home</a> </li> </ul> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 5.4. Build Flags </h1> </div> <p> We will need to setup target specific flags for the compiler and linkers. You can choose the appropriate BUILD32 and BUILD64 from the table at the bottom of the page. </p> <pre class="userinput"><kbd class="command">export BUILD32="[BUILD32 entries]"export BUILD64="[BUILD64 entries]"export GCCTARGET="[GCCTARGET entries]"</kbd></pre> <p> Lets add the build flags to <tt class="filename">~/.bashrc</tt> to prevent issues if we stop and come back later. </p> <pre class="userinput"><kbd class="command">echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrcecho export BUILD64=\""${BUILD64}\"" >> ~/.bashrcecho export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc</kbd></pre> <p> The following table gives the entires for different Sparc 64 capable processors. Pick the processor that matches your system. </p> <div class="table"> <a id="id3658758" name="id3658758"></a> <p class="title"> <b>Table 5.1. List of architectures, target triplets, and recommended book</b> </p> <table summary= "List of architectures, target triplets, and recommended book" border="1"> <colgroup> <col align="center" /> <col align="center" /> </colgroup> <thead> <tr> <th align="center"> Processor </th> <th align="center"> BUILD32 </th> <th align="center"> BUILD64 </th> <th align="center"> GCCTARGET </th> </tr> </thead> <tbody> <tr> <td align="center"> Ultrasparc and Ultrasparc2 </td> <td align="center"> -m32 -mcpu=ultrasparc -mtune=ultrasparc </td> <td align="center"> -m64 -mcpu=ultrasparc -mtune=ultrasparc </td> <td align="center"> -mcpu=ultrasparc -mtune=ultrasparc </td> </tr> <tr> <td align="center"> Ultrasparc3 </td> <td align="center"> -m32 -mcpu=ultrasparc3 -mtune=ultrasparc3 </td> <td align="center"> -m64 -mcpu=ultrasparc3 -mtune=ultrasparc3 </td> <td align="center"> -mcpu=ultrasparc3 -mtune=ultrasparc3 </td> </tr> </tbody> </table> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="variables.html" title= "Build Variables">Prev</a> <p> Build Variables </p> </li> <li class="next"> <a accesskey="n" href="linux-libc-headers.html" title= "Linux-Libc-Headers-2.6.12.0">Next</a> <p> Linux-Libc-Headers-2.6.12.0 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 5. Constructing Cross-Compile Tools">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-Sparc64-Multilib"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -