Ignore:
Timestamp:
06/29/2020 07:55:01 AM (4 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
c4804e8
Parents:
d4fdde6
Message:

Update to new lfs structure

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/binutils-pass1.xml

    rd4fdde6 r37e35d2  
    2626
    2727    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    28     href="../chapter06/binutils.xml"
     28    href="../chapter08/binutils.xml"
    2929    xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
    3030
     
    3434
    3535      <seglistitem>
    36         <seg>&binutils-ch5p1-sbu;</seg>
    37         <seg>&binutils-ch5p1-du;</seg>
     36        <seg>&binutils-tmpp1-sbu;</seg>
     37        <seg>&binutils-tmpp1-du;</seg>
    3838      </seglistitem>
    3939    </segmentedlist>
     
    4444    <title>Installation of Cross Binutils</title>
    4545
    46     <note><para>Go back and re-read the notes in the previous section.
    47     Understanding the notes labeled important will save you a lot
     46    <note><para>Go back and re-read the notes in the section titled <xref
     47    linkend="ch-tools-generalinstructions"/>.
     48    Understanding the notes labeled important can save you a lot
    4849    of problems later.</para></note>
    4950
     
    6465      the configuration, up to and including the first install. To achieve
    6566      this easily, wrap the commands in a <command>time</command>
    66       command like this: <userinput>time { ./configure ... &amp;&amp; ...
     67      command like this: <userinput>time { ./configure ... &amp;&amp; make
    6768      &amp;&amp; make install; }</userinput>.</para>
    6869    </note>
    6970
    70     <note><para>The approximate build SBU values and required disk space
    71     in Chapter&nbsp;5 does not include test suite data.</para></note>
    72 
    7371    <para>Now prepare Binutils for compilation:</para>
    7472
    75 <screen arch="default"><userinput remap="configure">../configure --prefix=/tools            \
     73<screen arch="default"><userinput remap="configure">../configure --prefix=$LFS/tools       \
    7674             --with-sysroot=$LFS        \
    77              --with-lib-path=/tools/lib \
    7875             --target=$LFS_TGT          \
    7976             --disable-nls              \
    8077             --disable-werror</userinput></screen>
    81 
    82     <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">lpath=/tools/lib</userinput>
    83 <userinput remap="configure" arch="ml_32,ml_all">lpath="$lpath:/tools/lib32"</userinput>
    84 <userinput remap="configure" arch="ml_x32,ml_all">lpath="$lpath:/tools/libx32"</userinput>
    85 <userinput remap="configure">../configure --prefix=/tools \
    86              --with-sysroot=$LFS                     \
    87              --with-lib-path=$lpath                  \
    88              --target=$LFS_TGT                       \
    89              --disable-nls                           \
    90              --disable-werror                        \
    91              --enable-64-bit-bfd                     \
     78<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">../configure --prefix=$LFS/tools       \
     79             --with-sysroot=$LFS        \
     80             --target=$LFS_TGT          \
     81             --disable-nls              \
     82             --disable-werror           \
    9283             --enable-multilib</userinput></screen>
    9384
     
    9687
    9788      <varlistentry>
    98         <term><parameter>--prefix=/tools</parameter></term>
     89        <term><parameter>--prefix=$LFS/tools</parameter></term>
    9990        <listitem>
    10091          <para>This tells the configure script to prepare to install the
    101           Binutils programs in the <filename class="directory">/tools</filename>
    102           directory.</para>
     92          binutils programs in the <filename
     93          class="directory">$LFS/tools</filename> directory.</para>
    10394        </listitem>
    10495      </varlistentry>
     
    113104
    114105      <varlistentry>
    115         <term><parameter>--with-lib-path=/tools/lib</parameter></term>
    116         <listitem>
    117           <para>This specifies which library path the linker should be
    118           configured to use.</para>
    119         </listitem>
    120       </varlistentry>
    121 
    122       <varlistentry>
    123106        <term><envar>--target=$LFS_TGT</envar></term>
    124107        <listitem>
     
    126109          variable is slightly different than the value returned by the
    127110          <command>config.guess</command> script, this switch will tell the
    128           <command>configure</command> script to adjust Binutil's build system
     111          <command>configure</command> script to adjust binutil's build system
    129112          for building a cross linker.  </para>
    130113        </listitem>
     
    147130      </varlistentry>
    148131
     132      <varlistentry arch="ml_32,ml_x32,ml_all">
     133        <term><parameter>--enable-multilib</parameter></term>
     134        <listitem>
     135          <para>Enables multilib support.</para>
     136        </listitem>
     137      </varlistentry>
     138
    149139    </variablelist>
    150140
     
    152142
    153143<screen><userinput remap="make">make</userinput></screen>
    154 
    155     <para>Compilation is now complete. Ordinarily we would now run the
    156     test suite, but at this early stage the test suite framework (Tcl,
    157     Expect, and DejaGNU) is not yet in place. The benefits of running the
    158     tests at this point are minimal since the programs from this
    159     first pass will soon be replaced by those from the second.</para>
    160 
    161     <para arch="default">If building on x86_64, create a symlink to ensure the
    162     sanity of the toolchain:</para>
    163 
    164     <para arch="ml_32,ml_x32,ml_all">Create a symlink to ensure the sanity of
    165     the toolchain:</para>
    166 
    167 <screen arch="default"><userinput remap="install">case $(uname -m) in
    168   x86_64) mkdir -v /tools/lib &amp;&amp; ln -sv lib /tools/lib64 ;;
    169 esac</userinput></screen>
    170 
    171 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="install">mkdir -v /tools/lib &amp;&amp;
    172 ln -sv lib /tools/lib64</userinput></screen>
    173144
    174145    <para>Install the package:</para>
Note: See TracChangeset for help on using the changeset viewer.