Ignore:
Timestamp:
Jun 3, 2013, 12:50:47 PM (11 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
fd7a9f3
Parents:
578cf221
Message:

Update to gcc 4.8.0.

File:
1 edited

Legend:

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

    r578cf221 r4dbd276  
    2424    and no Threads</title>
    2525
    26     <para os="p1">The following patch contains a number of updates to the
    27     &gcc-version; branch by the GCC developers:</para>
    28 
    29     <screen os="p2"><userinput>patch -Np1 -i ../&gcc-branch_update-patch;</userinput></screen>
    30 
    3126    <para os="aa">Make a couple of essential adjustments to the
    3227    <filename>specs</filename> file to ensure GCC uses our build
     
    3530<screen os="ab"><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen>
    3631
    37     <para os="ag">Change the StartFile Spec and Standard Include Dir so that
    38     GCC looks in <filename class="directory">/tools</filename>:</para>
    39 
    40 <screen os="ah"><userinput>echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h
    41 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h
     32    <para os="ag">Change the StartFile Spec so that GCC looks in
     33<filename class="directory">/tools</filename>:</para>
     34
     35<screen os="ah"><userinput>echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h
    4236echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h</userinput></screen>
    43 
    44     <para os="ai">Now alter <command>gcc</command>'s c preprocessor's default
    45     include search path to use <filename class="directory">/tools</filename> only:</para>
    46 
    47 <screen os="aj"><userinput>cp -v gcc/Makefile.in{,.orig}
    48 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \
    49     gcc/Makefile.in.orig &gt; gcc/Makefile.in</userinput></screen>
    5037
    5138    <para os="t1">We will create a dummy <filename>limits.h</filename> so
     
    6956  ../gcc-&gcc-version;/configure --prefix=/cross-tools \
    7057  --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
    71   --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls \
     58  --with-sysroot=${CLFS} --with-local-prefix=/tools \
     59  --with-native-system-header-dir=/tools/include --disable-nls \
    7260  --disable-shared --with-mpfr=/cross-tools --with-gmp=/cross-tools \
    73   --with-ppl=/cross-tools --with-cloog=/cross-tools --without-headers \
    74   --with-newlib --disable-decimal-float --disable-libgomp \
    75   --disable-libmudflap --disable-libssp --disable-threads \
    76   --enable-languages=c --disable-multilib --enable-cloog-backend=isl</userinput></screen>
     61  --with-cloog=/cross-tools --with-mpc=/cross-tools --without-headers \
     62  --with-newlib --disable-decimal-float --disable-libgomp --disable-libmudflap \
     63  --disable-libssp --disable-threads --disable-multilib --disable-libatomic \
     64  --disable-libitm --disable-libsanitizer --disable-libquadmath \
     65  --disable-target-libiberty --disable-target-zlib --with-system-zlib \
     66  --enable-cloog-backend=isl --disable-cloog-version-check \
     67  --enable-languages=c --enable-checking=release</userinput></screen>
    7768
    7869    <variablelist os="am">
     
    9788      </varlistentry>
    9889
     90
     91      <varlistentry>
     92        <term><parameter>--with-native-system-headers-dir=/tools/include</parameter></term>
     93        <listitem>
     94          <para>This switch ensures that GCC will search for the system headers
     95           in <filename class="directory">/tools/include</filename> and that
     96           host system headers will not be searched.</para>
     97        </listitem>
     98      </varlistentry>
     99
    99100      <varlistentry>
    100101        <term><parameter>--disable-nls</parameter></term>
    101102        <listitem>
    102           <para>This disables internationalization as i18n is not needed for the 
     103          <para>This disables internationalization as i18n is not needed for the
    103104          cross-compile tools.</para>
    104105        </listitem>
     
    158159
    159160      <varlistentry>
     161        <term><parameter>--disable-libatomic</parameter></term>
     162        <listitem>
     163          <para>The atomic library isn't needed at this time.</para>
     164        </listitem>
     165      </varlistentry>
     166
     167      <varlistentry>
     168        <term><parameter>--disable-libitm</parameter></term>
     169        <listitem>
     170          <para>The itm library isn't neeeded at this tiem.</para>
     171        </listitem>
     172      </varlistentry>
     173
     174      <varlistentry>
     175        <term><parameter>--disable-libsanitizer</parameter></term>
     176        <listitem>
     177          <para>The sanitizer library isn't needed at this time.</para>
     178        </listitem>
     179      </varlistentry>
     180
     181      <varlistentry>
     182        <term><parameter>--disable-libquadmath</parameter></term>
     183        <listitem>
     184          <para>The quadmath library isn't needed at this time.</para>
     185        </listitem>
     186      </varlistentry>
     187
     188      <varlistentry>
    160189        <term><parameter>--enable-languages=c</parameter></term>
    161190        <listitem>
    162191          <para>This option ensures that only the C compiler is built.</para>
     192        </listitem>
     193      </varlistentry>
     194
     195      <varlistentry>
     196        <term><parameter>--enable-checking=release</parameter></term>
     197        <listitem>
     198          <para>This option selects the complexity of the internal consistency checks and adds error checking within the compiler.</para>
    163199        </listitem>
    164200      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.