[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | <!ENTITY % patches-entities SYSTEM "../../patches.ent">
|
---|
| 6 | %general-entities;
|
---|
| 7 | %patches-entities;
|
---|
| 8 | ]>
|
---|
| 9 |
|
---|
| 10 | <sect1 id="ch-temp-system-gcc" role="wrap">
|
---|
| 11 | <?dbhtml filename="gcc.html"?>
|
---|
| 12 |
|
---|
| 13 | <title>GCC-&gcc-version;</title>
|
---|
| 14 |
|
---|
| 15 | <indexterm zone="ch-temp-system-gcc">
|
---|
| 16 | <primary sortas="a-GCC">GCC</primary>
|
---|
| 17 | <secondary>temporary system</secondary>
|
---|
| 18 | </indexterm>
|
---|
| 19 |
|
---|
[98b2c00] | 20 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 21 | href="../../final-system/common/gcc.xml"
|
---|
| 22 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[bf8c11f] | 23 |
|
---|
| 24 | <sect2 role="installation">
|
---|
| 25 | <title>Installation of GCC</title>
|
---|
| 26 |
|
---|
| 27 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 28 | href="../../cross-tools/x86_64/gcc-static.xml"
|
---|
| 29 | xpointer="xpointer(//*[@os='aa'])"/>
|
---|
| 30 |
|
---|
| 31 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 32 | href="../../cross-tools/x86_64/gcc-static.xml"
|
---|
| 33 | xpointer="xpointer(//*[@os='ab'])"/>
|
---|
| 34 |
|
---|
| 35 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 36 | href="../../cross-tools/x86_64/gcc-static.xml"
|
---|
| 37 | xpointer="xpointer(//*[@os='ac'])"/>
|
---|
| 38 |
|
---|
| 39 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 40 | href="../../cross-tools/x86_64/gcc-static.xml"
|
---|
| 41 | xpointer="xpointer(//*[@os='ad'])"/>
|
---|
| 42 |
|
---|
| 43 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 44 | href="../../cross-tools/x86_64/gcc-static.xml"
|
---|
| 45 | xpointer="xpointer(//*[@os='ae'])"/>
|
---|
| 46 |
|
---|
| 47 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 48 | href="../../cross-tools/x86_64/gcc-static.xml"
|
---|
| 49 | xpointer="xpointer(//*[@os='af'])"/>
|
---|
| 50 |
|
---|
| 51 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 52 | href="../x86/gcc.xml"
|
---|
| 53 | xpointer="xpointer(//*[@os='cd'])"/>
|
---|
| 54 |
|
---|
| 55 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 56 | href="../x86/gcc.xml"
|
---|
| 57 | xpointer="xpointer(//*[@os='ce'])"/>
|
---|
| 58 |
|
---|
| 59 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 60 | href="../x86/gcc.xml"
|
---|
| 61 | xpointer="xpointer(//*[@os='cf'])"/>
|
---|
| 62 |
|
---|
| 63 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 64 | href="../x86/gcc.xml"
|
---|
| 65 | xpointer="xpointer(//*[@os='cg'])"/>
|
---|
| 66 |
|
---|
| 67 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 68 | href="../x86/gcc.xml"
|
---|
| 69 | xpointer="xpointer(//*[@os='ch'])"/>
|
---|
| 70 |
|
---|
| 71 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 72 | href="../x86/gcc.xml"
|
---|
| 73 | xpointer="xpointer(//*[@os='ci'])"/>
|
---|
| 74 |
|
---|
| 75 | <para os="da">When searching for the multilibs, force the build to use the
|
---|
| 76 | results of <option>--print-multi-lib</option> from our cross-compiler,
|
---|
| 77 | not the native compiler <command>gcc</command> builds now.</para>
|
---|
| 78 |
|
---|
| 79 | <screen os="db"><userinput>cp gcc/Makefile.in{,.orig2}
|
---|
| 80 | sed -e "/MULTILIBS/s@\$(GCC_FOR_TARGET)@/cross-tools/bin/${CC}@g" \
|
---|
| 81 | gcc/Makefile.in.orig2 > gcc/Makefile.in</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 84 | href="../../cross-tools/x86_64/gcc-static.xml"
|
---|
| 85 | xpointer="xpointer(//*[@os='ak'])"/>
|
---|
| 86 |
|
---|
| 87 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 88 | href="../../final-system/common/gcc.xml"
|
---|
| 89 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 90 |
|
---|
| 91 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 92 | href="../../final-system/common/gcc.xml"
|
---|
| 93 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 94 |
|
---|
| 95 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 96 | href="../x86/gcc.xml"
|
---|
| 97 | xpointer="xpointer(//*[@os='cj'])"/>
|
---|
| 98 |
|
---|
| 99 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 100 | href="../../final-system/common/gcc.xml"
|
---|
| 101 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
| 102 |
|
---|
| 103 | <screen><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
|
---|
| 104 | ../gcc-&gcc-version;/configure --prefix=/tools --libdir=/tools/lib64 \
|
---|
| 105 | --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
|
---|
| 106 | --libexecdir=/tools/lib64 --with-local-prefix=/tools --enable-long-long \
|
---|
| 107 | --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \
|
---|
| 108 | --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <variablelist os="dc">
|
---|
| 111 | <title>The meaning of the new configure options:</title>
|
---|
| 112 |
|
---|
| 113 | <varlistentry os="dc1">
|
---|
| 114 | <term><parameter>CXX="${CXX} ${BUILD64}"</parameter></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>This do ...</para>
|
---|
| 117 | </listitem>
|
---|
| 118 | </varlistentry>
|
---|
| 119 |
|
---|
| 120 | <varlistentry os="dc2">
|
---|
| 121 | <term><parameter>--libexecdir=/tools/lib64</parameter></term>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>This do ...</para>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 128 | href="../x86/gcc.xml"
|
---|
| 129 | xpointer="xpointer(//*[@os='ck2'])"/>
|
---|
| 130 |
|
---|
| 131 | </variablelist>
|
---|
| 132 |
|
---|
| 133 | <para>Compile the package:</para>
|
---|
| 134 |
|
---|
| 135 | <screen><userinput>make AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as" \
|
---|
| 136 | LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</userinput></screen>
|
---|
| 137 |
|
---|
| 138 | <para>Install the package:</para>
|
---|
| 139 |
|
---|
| 140 | <screen><userinput>make install</userinput></screen>
|
---|
| 141 |
|
---|
| 142 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 143 | href="../../final-system/common/gcc.xml"
|
---|
| 144 | xpointer="xpointer(//*[@os='w'])"/>
|
---|
| 145 |
|
---|
| 146 | <screen><userinput>ln -s gcc /tools/bin/cc</userinput></screen>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="content">
|
---|
| 151 | <title/>
|
---|
| 152 |
|
---|
| 153 | <para>Details on this package are located in <xref
|
---|
| 154 | linkend="contents-gcc" role="."/></para>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | </sect1>
|
---|