[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c439b8a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[02095ae] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-cross-tools-gcc-static" role="wrap">
|
---|
| 9 | <?dbhtml filename="gcc-static.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Cross GCC-&gcc-version; - Static</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-cross-tools-gcc-static">
|
---|
| 14 | <primary sortas="a-GCC">GCC</primary>
|
---|
| 15 | <secondary>cross tools, static</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/common/gcc.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Cross GCC Compiler with Static libgcc
|
---|
| 24 | and no Threads</title>
|
---|
| 25 |
|
---|
[7126617] | 26 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 27 | href="../../final-system/common/gcc.xml"
|
---|
| 28 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
[02095ae] | 29 |
|
---|
[7126617] | 30 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 31 | href="../../final-system/common/gcc.xml"
|
---|
| 32 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
[02095ae] | 33 |
|
---|
[7329dbe] | 34 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 35 | href="../../final-system/common/gcc.xml"
|
---|
| 36 | xpointer="xpointer(//*[@os='p3'])"/>
|
---|
| 37 |
|
---|
| 38 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 39 | href="../../final-system/common/gcc.xml"
|
---|
| 40 | xpointer="xpointer(//*[@os='p4'])"/>
|
---|
| 41 |
|
---|
[02095ae] | 42 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 43 | href="../../final-system/common/gcc.xml"
|
---|
[8e23f7c] | 44 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
[02095ae] | 45 |
|
---|
| 46 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 47 | href="../../final-system/common/gcc.xml"
|
---|
[8e23f7c] | 48 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
[02095ae] | 49 |
|
---|
| 50 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 51 | href="../../final-system/common/gcc.xml"
|
---|
[8e23f7c] | 52 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
[02095ae] | 53 |
|
---|
[ab1184b] | 54 | <screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
|
---|
| 55 | ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
|
---|
[efb33c9] | 56 | --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
|
---|
| 57 | --disable-multilib --with-sysroot=${CLFS} --disable-nls \
|
---|
| 58 | --without-headers --with-newlib --disable-decimal-float \
|
---|
| 59 | --disable-libgomp --disable-libmudflap --disable-libssp \
|
---|
[ab1184b] | 60 | --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
|
---|
[cf44b18] | 61 | --with-ppl=${CLFS}/cross-tools --with-cloog=${CLFS}/cross-tools \
|
---|
[efb33c9] | 62 | --disable-shared --disable-threads --enable-languages=c</userinput></screen>
|
---|
[02095ae] | 63 |
|
---|
| 64 | <variablelist os="af">
|
---|
| 65 | <title>The meaning of the configure options:</title>
|
---|
| 66 |
|
---|
| 67 | <varlistentry>
|
---|
| 68 | <term><parameter>--disable-shared</parameter></term>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Disables the creation of the shared libraries.</para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </varlistentry>
|
---|
| 73 |
|
---|
| 74 | <varlistentry>
|
---|
| 75 | <term><parameter>--disable-threads</parameter></term>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>This will prevent GCC from looking for the multi-thread
|
---|
| 78 | include files, since they haven't been created for this architecture
|
---|
| 79 | yet. GCC will be able to find the multi-thread information after
|
---|
[fef8487] | 80 | the EGLIBC headers are created.</para>
|
---|
[02095ae] | 81 | </listitem>
|
---|
| 82 | </varlistentry>
|
---|
| 83 |
|
---|
| 84 | <varlistentry>
|
---|
| 85 | <term><parameter>--enable-languages=c</parameter></term>
|
---|
| 86 | <listitem>
|
---|
| 87 | <para>This option ensures that only the C compiler is built.</para>
|
---|
| 88 | </listitem>
|
---|
| 89 | </varlistentry>
|
---|
| 90 |
|
---|
| 91 | </variablelist>
|
---|
| 92 |
|
---|
| 93 | <para os="ag">Continue with compiling the package:</para>
|
---|
| 94 |
|
---|
[efb33c9] | 95 | <screen os="ah"><userinput>make</userinput></screen>
|
---|
[02095ae] | 96 |
|
---|
| 97 | <para os="ai">Install the package:</para>
|
---|
| 98 |
|
---|
[efb33c9] | 99 | <screen os="aj"><userinput>make install</userinput></screen>
|
---|
[02095ae] | 100 |
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="content">
|
---|
| 104 | <title/>
|
---|
| 105 |
|
---|
| 106 | <para>Details on this package are located in <xref
|
---|
| 107 | linkend="contents-gcc" role="."/></para>
|
---|
| 108 |
|
---|
| 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | </sect1>
|
---|