Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
]>
<sect1 id="ch-cross-tools-gcc-static" role="wrap">
<?dbhtml filename="gcc-static.html"?>
<title>Cross GCC-&gcc-version; - Static</title>
<indexterm zone="ch-cross-tools-gcc-static">
<primary sortas="a-GCC">GCC</primary>
<secondary>cross tools, static</secondary>
</indexterm>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../../final-system/common/gcc.xml"
xpointer="xpointer(//*[@role='package'])"/>
<sect2 role="installation">
<title>Installation of Cross GCC Compiler with Static libgcc
and no Threads</title>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../../final-system/common/gcc.xml"
xpointer="xpointer(//*[@os='p3'])"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../../final-system/common/gcc.xml"
xpointer="xpointer(//*[@os='p4'])"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../../final-system/common/gcc.xml"
xpointer="xpointer(//*[@os='c'])"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../../final-system/common/gcc.xml"
xpointer="xpointer(//*[@os='d'])"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../../final-system/common/gcc.xml"
xpointer="xpointer(//*[@os='e'])"/>
<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
--build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
--disable-multilib --with-sysroot=${CLFS} --disable-nls \
--without-headers --with-newlib --disable-decimal-float \
--disable-libgomp --disable-libmudflap --disable-libssp \
--with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
--with-ppl=${CLFS}/cross-tools --with-cloog=${CLFS}/cross-tools \
--disable-shared --disable-threads --enable-languages=c</userinput></screen>
<variablelist os="af">
<title>The meaning of the configure options:</title>
<varlistentry>
<term><parameter>--disable-shared</parameter></term>
<listitem>
<para>Disables the creation of the shared libraries.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--disable-threads</parameter></term>
<listitem>
<para>This will prevent GCC from looking for the multi-thread
include files, since they haven't been created for this architecture
yet. GCC will be able to find the multi-thread information after
the EGLIBC headers are created.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--enable-languages=c</parameter></term>
<listitem>
<para>This option ensures that only the C compiler is built.</para>
</listitem>
</varlistentry>
</variablelist>
<para os="ag">Continue with compiling the package:</para>
<screen os="ah"><userinput>make all-gcc all-target-libgcc</userinput></screen>
<para os="ai">Install the package:</para>
<screen os="aj"><userinput>make install-gcc install-target-libgcc</userinput></screen>
</sect2>
<sect2 role="content">
<title/>
<para>Details on this package are located in <xref
linkend="contents-gcc" role="."/></para>
</sect2>
</sect1>