Changeset 75d34e0


Ignore:
Timestamp:
Dec 2, 2006, 10:03:22 AM (17 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
04d38ab
Parents:
45683dc
Message:

Binutils changed to sysroot build

Location:
BOOK/cross-tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/64/binutils.xml

    r45683dc r75d34e0  
    4747    xpointer="xpointer(//*[@os='i'])"/>
    4848
    49 <screen os="ca"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
    50    --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
    51    --disable-nls --enable-shared --enable-64-bit-bfd --disable-multilib</userinput></screen>
     49    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     50    href="../common/binutils.xml"
     51    xpointer="xpointer(//*[@os='bc'])"/>
    5252
    5353    <variablelist os="bd">
  • BOOK/cross-tools/common/binutils.xml

    r45683dc r75d34e0  
    4545    xpointer="xpointer(//*[@os='i'])"/>
    4646
    47 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
    48     --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
    49     --disable-nls --enable-shared --disable-multilib</userinput></screen>
     47<screen os="bc"><userinput>../binutils-&binutils-version;/configure \
     48    --prefix=${CLFS}/cross-tools --with-sysroot=${CLFS} --host=${CLFS_HOST} \
     49    --target=${CLFS_TARGET} --disable-nls --enable-shared \
     50    --enable-64-bit-bfd --disable-multilib</userinput></screen>
    5051
    5152    <variablelist os="bd">
     
    5354
    5455      <varlistentry os="bd1">
    55         <term><parameter>--prefix=/cross-tools</parameter></term>
     56        <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term>
    5657        <listitem>
    5758          <para>This tells the configure script to prepare to install the
    58           package in the <filename class="directory">/cross-tools</filename>
     59          package in the <filename class="directory">${CLFS}/cross-tools</filename>
    5960          directory.</para>
    6061        </listitem>
     
    6263
    6364      <varlistentry os="bd2">
     65        <term><parameter>--with-sysroot=${CLFS}</parameter></term>
     66        <listitem>
     67          <para>This tells configure that
     68          <filename class="directory">${CLFS}</filename> is going to be
     69          the root of our system. It will now use the specified sysroot,
     70          <filename class="directory">${CLFS}</filename>.</para>
     71        </listitem>
     72      </varlistentry>
     73
     74      <varlistentry os="bd3">
    6475        <term><parameter>--host=${CLFS_HOST}</parameter></term>
    6576        <listitem>
     
    6980      </varlistentry>
    7081
    71       <varlistentry os="bd3">
     82      <varlistentry os="bd4">
    7283        <term><parameter>--target=${CLFS_TARGET}</parameter></term>
    7384        <listitem>
    7485          <para>When used with --host, this creates a cross-architecture
    7586          executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST}.</para>
    76         </listitem>
    77       </varlistentry>
    78 
    79       <varlistentry os="bd4">
    80         <term><parameter>--with-lib-path=/tools/lib</parameter></term>
    81         <listitem>
    82           <para>This tells the configure script to specify the library
    83           search path during the compilation of Binutils, resulting in
    84           <filename class="directory">/tools/lib</filename> being passed
    85           to the linker. This prevents the linker from searching through
    86           library directories on the host.</para>
    8787        </listitem>
    8888      </varlistentry>
     
    136136
    137137    <para os="bj">Copy <filename class="headerfile">libiberty.h</filename> to
    138     <filename class="directory">/tools/include</filename> directory:</para>
     138    <filename class="directory">${CLFS}/tools/include</filename> directory:</para>
    139139
    140 <screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen>
     140<screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/tools/include</userinput></screen>
    141141
    142142  </sect2>
  • BOOK/cross-tools/multilib/binutils.xml

    r45683dc r75d34e0  
    5555    xpointer="xpointer(//*[@os='i'])"/>
    5656
    57 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
    58    --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
    59    --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen>
     57<screen os="bc"><userinput>../binutils-&binutils-version;/configure \
     58    --prefix=${CLFS}/cross-tools --with-sysroot=${CLFS} --host=${CLFS_HOST} \
     59    --target=${CLFS_TARGET} --disable-nls --enable-shared \
     60    --enable-64-bit-bfd</userinput></screen>
    6061
    6162    <variablelist os="bd">
Note: See TracChangeset for help on using the changeset viewer.