Ignore:
Timestamp:
Dec 7, 2006, 11:23:24 PM (18 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:
1e184e11
Parents:
8473983
Message:

Reverting of Sysroot Changes

Location:
BOOK/cross-tools/common
Files:
2 edited

Legend:

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

    r8473983 rbc2e3fa  
    5353    xpointer="xpointer(//*[@os='i'])"/>
    5454
    55 <screen os="bc"><userinput>../binutils-&binutils-version;/configure \
    56     --prefix=${CLFS}/cross-tools --with-sysroot=${CLFS} --host=${CLFS_HOST} \
    57     --target=${CLFS_TARGET} --disable-nls --enable-shared \
    58     --disable-multilib --with-lib-path=${CLFS}/tools/lib</userinput></screen>
     55<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
     56    --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
     57    --disable-nls --enable-shared --disable-multilib</userinput></screen>
    5958
    6059    <variablelist os="bd">
     
    6261
    6362      <varlistentry os="bd1">
    64         <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term>
     63        <term><parameter>--prefix=/cross-tools</parameter></term>
    6564        <listitem>
    6665          <para>This tells the configure script to prepare to install the
    67           package in the <filename class="directory">${CLFS}/cross-tools</filename>
     66          package in the <filename class="directory">/cross-tools</filename>
    6867          directory.</para>
    6968        </listitem>
     
    7170
    7271      <varlistentry os="bd2">
    73         <term><parameter>--with-sysroot=${CLFS}</parameter></term>
    74         <listitem>
    75           <para>This tells configure that
    76           <filename class="directory">${CLFS}</filename> is going to be
    77           the root of our system. It will now use the specified sysroot,
    78           <filename class="directory">${CLFS}</filename>.</para>
    79         </listitem>
    80       </varlistentry>
    81 
    82       <varlistentry os="bd3">
    8372        <term><parameter>--host=${CLFS_HOST}</parameter></term>
    8473        <listitem>
     
    8877      </varlistentry>
    8978
    90       <varlistentry os="bd4">
     79      <varlistentry os="bd3">
    9180        <term><parameter>--target=${CLFS_TARGET}</parameter></term>
    9281        <listitem>
    9382          <para>When used with --host, this creates a cross-architecture
    9483          executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST}.</para>
     84        </listitem>
     85      </varlistentry>
     86
     87      <varlistentry os="bd4">
     88        <term><parameter>--with-lib-path=/tools/lib</parameter></term>
     89        <listitem>
     90          <para>This tells the configure script to specify the library
     91          search path during the compilation of Binutils, resulting in
     92          <filename class="directory">/tools/lib</filename> being passed
     93          to the linker. This prevents the linker from searching through
     94          library directories on the host.</para>
    9595        </listitem>
    9696      </varlistentry>
     
    144144
    145145    <para os="bj">Copy <filename class="headerfile">libiberty.h</filename> to
    146     <filename class="directory">${CLFS}/tools/include</filename> directory:</para>
     146    <filename class="directory">/tools/include</filename> directory:</para>
    147147
    148 <screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/tools/include</userinput></screen>
     148<screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen>
    149149
    150150  </sect2>
  • BOOK/cross-tools/common/glibc.xml

    r8473983 rbc2e3fa  
    6161echo "libc_cv_c_cleanup=yes" &gt;&gt; config.cache</userinput></screen>
    6262
    63     <para os="n1">The following line needs to be added to
    64     <filename>configparms</filename> to adjust installation paths.</para>
    65 
    66 <screen os="n2"><userinput>echo "install_root=${CLFS}" &gt; configparms</userinput></screen>
    67 
    6863    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    6964    href="../../final-system/common/glibc.xml"
     
    7671    --disable-profile --enable-add-ons \
    7772    --with-tls --enable-kernel=2.6.0 --with-__thread \
    78     --with-binutils=${CLFS}/cross-tools/bin \
    79     --with-headers=${CLFS}/tools/include \
     73    --with-binutils=/cross-tools/bin --with-headers=/tools/include \
    8074    --cache-file=config.cache</userinput></screen>
    8175
     
    147141
    148142      <varlistentry os="dg9">
    149         <term><parameter>--with-binutils=${CLFS}/cross-tools/bin</parameter></term>
     143        <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
    150144        <listitem>
    151145          <para>This tells Glibc to use the Binutils that are specific to
Note: See TracChangeset for help on using the changeset viewer.