Changeset 1218687 for chapter05


Ignore:
Timestamp:
07/23/2007 05:09:53 PM (17 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
2b75709a
Parents:
8e6333e
Message:

Initial changes to build x86_64 natively. Build needs testing and, very likely, some adjusting.

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

Location:
chapter05
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter05/adjusting.xml

    r8e6333e r1218687  
    4949
    5050<!-- Ampersands are needed to allow copy and paste -->
    51 <screen><userinput>gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&amp;@g' \
     51<screen><userinput>gcc -dumpspecs | sed 's@/lib/ld-linux-x86-64.so.2@/tools&amp;@g' \
    5252  > `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen>
    5353
     
    8585
    8686<screen><computeroutput>[Requesting program interpreter:
    87     /tools/lib/ld-linux.so.2]</computeroutput></screen>
     87    /tools/lib/ld-linux-x86-64.so.2]</computeroutput></screen>
    8888
    8989    <para>Note that <filename class="directory">/tools/lib</filename>
  • chapter05/binutils-pass1.xml

    r8e6333e r1218687  
    6161
    6262<screen><userinput>CC="gcc -B/usr/bin/" ../binutils-&binutils-version;/configure \
    63     --prefix=/tools --disable-nls</userinput></screen>
     63    --prefix=/tools --disable-nls --disable-multilib</userinput></screen>
    6464
    6565    <variablelist>
     
    9191          <para>This disables internationalization as i18n is not needed for the
    9292          temporary tools.</para>
     93        </listitem>
     94      </varlistentry>
     95
     96      <varlistentry>
     97        <term><parameter>--disable-multilib</parameter></term>
     98        <listitem>
     99          <para>We currently only want to build support for 64-bit libraries.</para>
    93100        </listitem>
    94101      </varlistentry>
  • chapter05/binutils-pass2.xml

    r8e6333e r1218687  
    4646
    4747<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
    48     --disable-nls --with-lib-path=/tools/lib</userinput></screen>
     48    --disable-nls --with-lib-path=/tools/lib \
     49    --disable-multilib</userinput></screen>
    4950
    5051    <variablelist>
  • chapter05/gcc-pass1.xml

    r8e6333e r1218687  
    3838    <title>Installation of GCC</title>
    3939
     40    <para>Apply a small patch that changes the default location for
     41    64-bit libraries:</para>
     42
     43<screen><userinput>patch -Np1 -i ../&gcc-pure64-patch;</userinput></screen>
     44
    4045    <para>The GCC documentation recommends building GCC outside of the
    4146    source directory in a dedicated build directory:</para>
     
    4853<screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \
    4954    --with-local-prefix=/tools --disable-nls --enable-shared \
    50     --enable-languages=c</userinput></screen>
     55    --enable-languages=c --disable-multilib</userinput></screen>
    5156
    5257    <variablelist>
     
    9196        <listitem>
    9297          <para>This option ensures that only the C compiler is built.</para>
     98        </listitem>
     99      </varlistentry>
     100
     101      <varlistentry>
     102        <term><parameter>--disable-multilib</parameter></term>
     103        <listitem>
     104          <para>We currently only want to build support for 64-bit libraries.</para>
    93105        </listitem>
    94106      </varlistentry>
  • chapter05/gcc-pass2.xml

    r8e6333e r1218687  
    8787    <para>Apply the following patch to change the location of GCC's default
    8888    dynamic linker (typically <filename
    89     class="libraryfile">ld-linux.so.2</filename>):</para>
    90 
    91 <screen><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen>
     89    class="libraryfile">ld-linux-x86-64.so.2</filename>):</para>
     90
     91<screen><userinput>patch -Np1 -i ../&gcc-pure64-specs-patch;</userinput></screen>
    9292
    9393    <para>The above patch also removes <filename
     
    117117    --enable-shared --enable-threads=posix \
    118118    --enable-__cxa_atexit --enable-languages=c,c++ \
    119     --disable-libstdcxx-pch</userinput></screen>
     119    --disable-libstdcxx-pch --disable-multilib</userinput></screen>
    120120
    121121    <variablelist>
     
    200200<screen><userinput>make install</userinput></screen>
    201201
     202    <para>Since we're not building a multilib system, let's move some
     203        installed libraries to a more generic location:</para>
     204<screen><userinput>cp -va /tools/lib64/* /tools/lib
     205rm -rvf /tools/lib64</userinput></screen>
     206
    202207    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    203208    href="adjusting.xml"
Note: See TracChangeset for help on using the changeset viewer.