Changeset e1b2402 in clfs-embedded for BOOK/cross-tools/common


Ignore:
Timestamp:
Jan 24, 2009, 10:22:31 AM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
4b05af9
Parents:
ae582f6
Message:

GCC and Binutils Updates to Embedded

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

Legend:

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

    rae582f6 re1b2402  
    3232    enable.</para>
    3333
    34     <para os="p1">To make sure that the proper syntax is used for a couple of
     34    <para os="p1">The following patch contains a number of updates to the
     35    &binutils-version; branch by the Binutils developers:</para>
     36
     37<screen os="p2"><userinput>patch -Np1 -i ../&binutils-branch_update-patch;</userinput></screen>
     38
     39    <para os="p3">To make sure that the proper syntax is used for a couple of
    3540    tools, apply the following patch:</para>
    3641
    37 <screen os="p2"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
     42<screen os="p4"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
    3843
    3944    <para os="b">The Binutils documentation recommends building Binutils outside of the
  • BOOK/cross-tools/common/gcc-final.xml

    rae582f6 re1b2402  
    3333    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    3434    href="gcc-static.xml"
     35    xpointer="xpointer(//*[@os='p3'])"/>
     36
     37    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     38    href="gcc-static.xml"
     39    xpointer="xpointer(//*[@os='p4'])"/>
     40
     41    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     42    href="gcc-static.xml"
    3543    xpointer="xpointer(//*[@os='c'])"/>
    3644
     
    4452
    4553<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
    46     --target=${CLFS_TARGET} --disable-multilib \
    47     --with-sysroot=${CLFS} --disable-nls --enable-shared \
    48     --enable-languages=c --enable-__cxa_atexit \
    49     --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
     54  --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \
     55  --with-sysroot=${CLFS} --disable-nls --enable-shared \
     56  --enable-languages=c --enable-c99 --enable-long-long \
     57  --with-mpfr=/cross-tools --with-gmp=/cross-tools</userinput></screen>
    5058
    5159    <variablelist os="af">
     
    5563        <term><parameter>--enable-languages=c</parameter></term>
    5664        <listitem>
    57           <para>This option ensures that only the C compiler is built. If the C++ compiler is needed, use --enable-languages=c,c++</para>
     65          <para>This option ensures that only the C compiler is built.</para>
    5866        </listitem>
    5967      </varlistentry>
    6068
    6169      <varlistentry os="af2">
    62         <term><parameter>--enable-__cxa_atexit</parameter></term>
    63         <listitem>
    64           <para>This option allows use of __cxa_atexit, rather than atexit,
    65           to register C++ destructors for local statics and global objects
    66           and is essential for fully standards-compliant handling of destructors.
    67           It also affects the C++ ABI and therefore results in C++ shared libraries
    68           and C++ programs that are interoperable with other Linux distributions.</para>
    69         </listitem>
    70       </varlistentry>
    71 
    72       <varlistentry os="af3">
    7370        <term><parameter>--enable-c99</parameter></term>
    7471        <listitem>
     
    7774      </varlistentry>
    7875
    79       <varlistentry os="af4">
     76      <varlistentry os="af3">
    8077        <term><parameter>--enable-long-long</parameter></term>
    8178        <listitem>
    8279          <para>Enables long long support in the compiler.</para>
    83         </listitem>
    84       </varlistentry>
    85 
    86       <varlistentry os="af5">
    87         <term><parameter>--enable-threads=posix</parameter></term>
    88         <listitem>
    89           <para>This enables C++ exception handling for multi-threaded code.</para>
    9080        </listitem>
    9181      </varlistentry>
     
    115105
    116106      <seglistitem>
    117         <seg>c++, cc (link to gcc), cpp, g++, gcc, gccbug, and gcov</seg>
     107        <seg>cc (link to gcc), gcc, gccbug, and gcov</seg>
    118108        <seg>libgcc.a, libgcc_eh.a, libgcc_s.so, libmudflap.[a,so],
    119         libmudflapth.[a,so], libstdc++.[a,so], and
    120         libsupc++.a</seg>
     109        and libmudflapth.[a,so]</seg>
    121110      </seglistitem>
    122111    </segmentedlist>
     
    133122          <indexterm zone="ch-cross-tools-gcc-final cc">
    134123            <primary sortas="b-cc">cc</primary>
    135           </indexterm>
    136         </listitem>
    137       </varlistentry>
    138 
    139       <varlistentry id="cpp">
    140         <term><command>cpp</command></term>
    141         <listitem>
    142           <para>The C preprocessor; it is used by the compiler to expand the
    143           #include, #define, and similar statements in the source files</para>
    144           <indexterm zone="ch-cross-tools-gcc-final cpp">
    145             <primary sortas="b-cpp">cpp</primary>
    146           </indexterm>
    147         </listitem>
    148       </varlistentry>
    149 
    150       <varlistentry id="c">
    151         <term><command>c++</command></term>
    152         <listitem>
    153           <para>The C++ compiler</para>
    154           <indexterm zone="ch-cross-tools-gcc-final c">
    155             <primary sortas="b-c++">c++</primary>
    156           </indexterm>
    157         </listitem>
    158       </varlistentry>
    159 
    160       <varlistentry id="g">
    161         <term><command>g++</command></term>
    162         <listitem>
    163           <para>The C++ compiler</para>
    164           <indexterm zone="ch-cross-tools-gcc-final g">
    165             <primary sortas="b-g++">g++</primary>
    166124          </indexterm>
    167125        </listitem>
     
    220178      </varlistentry>
    221179
    222       <varlistentry id="libstdc">
    223         <term><filename class="libraryfile">libstdc++</filename></term>
    224         <listitem>
    225           <para>The standard C++ library</para>
    226           <indexterm zone="ch-cross-tools-gcc-final libstdc">
    227             <primary sortas="c-libstdc++">libstdc++</primary>
    228           </indexterm>
    229         </listitem>
    230       </varlistentry>
    231 
    232       <varlistentry id="libsupc">
    233         <term><filename class="libraryfile">libsupc++</filename></term>
    234         <listitem>
    235           <para>Provides supporting routines for the C++ programming
    236           language</para>
    237           <indexterm zone="ch-cross-tools-gcc-final libsupc">
    238             <primary sortas="c-libsupc++">libsupc++</primary>
    239           </indexterm>
    240         </listitem>
    241       </varlistentry>
    242 
    243180    </variablelist>
    244181
  • BOOK/cross-tools/common/gcc-static.xml

    rae582f6 re1b2402  
    2828    and no Threads</title>
    2929
    30     <para os="p1">To make sure that a couple of tools use the proper syntax,
     30    <para os="p1">The following patch contains a number of updates to the
     31    &gcc-version; branch by the GCC developers:</para>
     32
     33<screen os="p2"><userinput>patch -Np1 -i ../&gcc-branch_update-patch;</userinput></screen>
     34
     35    <para os="p3">To make sure that a couple of tools use the proper syntax,
    3136    apply the following patch:</para>
    3237
    33 <screen os="p2"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
     38<screen os="p4"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
    3439
    3540    <para os="c">The GCC documentation recommends building GCC outside of the source
     
    4146    <para os="e">Prepare GCC for compilation:</para>
    4247
    43 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
    44     --target=${CLFS_TARGET} --disable-multilib \
    45     --with-sysroot=${CLFS} --disable-nls --disable-shared \
    46     --without-headers --with-newlib --disable-decimal-float \
    47     --disable-libgomp --disable-libmudflap --disable-libssp \
    48     --disable-threads --enable-languages=c</userinput></screen>
     48<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
     49  ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
     50  --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
     51  --with-sysroot=${CLFS} --disable-nls  --disable-shared \
     52  --with-mpfr=/cross-tools --with-gmp=/cross-tools \
     53  --without-headers --with-newlib --disable-decimal-float \
     54  --disable-libgomp --disable-libmudflap --disable-libssp \
     55  --disable-threads --enable-languages=c</userinput></screen>
    4956
    5057    <variablelist os="af">
Note: See TracChangeset for help on using the changeset viewer.