[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-cross-tools-glibc" role="wrap">
|
---|
| 11 | <?dbhtml filename="glibc.html"?>
|
---|
| 12 |
|
---|
| 13 | <title>Glibc-&glibc-version;</title>
|
---|
| 14 |
|
---|
| 15 | <indexterm zone="ch-cross-tools-glibc">
|
---|
| 16 | <primary sortas="a-Glibc">Glibc</primary>
|
---|
| 17 | <secondary>cross tools</secondary>
|
---|
| 18 | </indexterm>
|
---|
| 19 |
|
---|
| 20 | <sect2 role="package">
|
---|
| 21 | <title/>
|
---|
| 22 |
|
---|
| 23 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 24 | href="../../final-system/common/glibc.xml"
|
---|
| 25 | xpointer="xpointer(//*[@role='package']/para[1])"/>
|
---|
| 26 |
|
---|
| 27 | <segmentedlist>
|
---|
| 28 | <segtitle>&buildtime;</segtitle>
|
---|
| 29 | <segtitle>&diskspace;</segtitle>
|
---|
| 30 |
|
---|
| 31 | <seglistitem>
|
---|
| 32 | <seg>Not checked yet</seg>
|
---|
| 33 | <seg>Not checked yet</seg>
|
---|
| 34 | </seglistitem>
|
---|
| 35 | </segmentedlist>
|
---|
| 36 |
|
---|
| 37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 38 | href="../../final-system/common/glibc.xml"
|
---|
| 39 | xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
|
---|
| 40 |
|
---|
| 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of Glibc</title>
|
---|
| 45 |
|
---|
| 46 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 47 | href="../common/glibc.xml"
|
---|
| 48 | xpointer="xpointer(//*[@os='da'])"/>
|
---|
| 49 |
|
---|
| 50 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 51 | href="../common/glibc.xml"
|
---|
| 52 | xpointer="xpointer(//*[@os='db'])"/>
|
---|
| 53 |
|
---|
| 54 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 55 | href="../common/glibc.xml"
|
---|
| 56 | xpointer="xpointer(//*[@os='dc'])"/>
|
---|
| 57 |
|
---|
| 58 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 59 | href="../../final-system/sparc/glibc.xml"
|
---|
| 60 | xpointer="xpointer(//*[@os='s1'])"/>
|
---|
| 61 |
|
---|
| 62 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 63 | href="../../final-system/sparc/glibc.xml"
|
---|
| 64 | xpointer="xpointer(//*[@os='s2'])"/>
|
---|
| 65 |
|
---|
| 66 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 67 | href="../common/glibc.xml"
|
---|
| 68 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 69 |
|
---|
| 70 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 71 | href="../common/glibc.xml"
|
---|
| 72 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 73 |
|
---|
| 74 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 75 | href="../common/glibc.xml"
|
---|
| 76 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 77 |
|
---|
| 78 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 79 | href="../common/glibc.xml"
|
---|
| 80 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 81 |
|
---|
| 82 | <para os="dd"> For NPTL enabled systems we will need to add the following lines to
|
---|
| 83 | <filename>config.cache</filename>:</para>
|
---|
| 84 |
|
---|
| 85 | <screen os="de"><userinput>echo "libc_cv_forced_unwind=yes" > config.cache
|
---|
| 86 | echo "libc_cv_c_cleanup=yes" >> config.cache</userinput></screen>
|
---|
| 87 |
|
---|
| 88 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 89 | href="../../final-system/common/glibc.xml"
|
---|
| 90 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 91 |
|
---|
| 92 | <screen><userinput>BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
|
---|
| 93 | AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
|
---|
| 94 | ../glibc-&glibc-version;/configure --prefix=/tools \
|
---|
| 95 | --host=${LFS_TARGET} --build=${LFS_HOST} \
|
---|
| 96 | --disable-profile --enable-add-ons \
|
---|
| 97 | --with-tls --enable-kernel=2.6.0 --with-__thread \
|
---|
| 98 | --with-binutils=/cross-tools/bin --with-headers=/tools/include \
|
---|
| 99 | --cache-file=config.cache</userinput></screen>
|
---|
| 100 |
|
---|
| 101 | <variablelist os="di">
|
---|
| 102 | <title>The meaning of the new configure options:</title>
|
---|
| 103 |
|
---|
| 104 | <varlistentry os="di1">
|
---|
| 105 | <term><parameter>BUILD_CC="gcc"</parameter></term>
|
---|
| 106 | <listitem>
|
---|
| 107 | <para>This do ...</para>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 |
|
---|
| 111 | <varlistentry os="di2">
|
---|
| 112 | <term><parameter>CC="${LFS_TARGET}-gcc"</parameter></term>
|
---|
| 113 | <listitem>
|
---|
| 114 | <para>This do ...</para>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
| 118 | <varlistentry os="di3">
|
---|
| 119 | <term><parameter>AR="${LFS_TARGET}-ar"</parameter></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>This do ...</para>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | <varlistentry os="di4">
|
---|
| 126 | <term><parameter>RANLIB="${LFS_TARGET}-ranlib"</parameter></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>This do ...</para>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry os="di5">
|
---|
| 133 | <term><parameter>--disable-profile</parameter></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>This do ...</para>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
| 139 | <varlistentry os="di6">
|
---|
| 140 | <term><parameter>--enable-add-ons</parameter></term>
|
---|
| 141 | <listitem>
|
---|
| 142 | <para>This do ...</para>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | <varlistentry os="di7">
|
---|
| 147 | <term><parameter>--with-tls</parameter></term>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>This do ...</para>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
| 153 | <varlistentry os="di8">
|
---|
| 154 | <term><parameter>--with-__thread</parameter></term>
|
---|
| 155 | <listitem>
|
---|
| 156 | <para>This do ...</para>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry os="di9">
|
---|
| 161 | <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>This do ...</para>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry os="di10">
|
---|
| 168 | <term><parameter>--cache-file=config.cache</parameter></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>This do ...</para>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | </variablelist>
|
---|
| 175 |
|
---|
| 176 | <para os="df">During this stage the following warning might appear:</para>
|
---|
| 177 |
|
---|
| 178 | <blockquote os="dg"><screen><computeroutput>configure: WARNING:
|
---|
| 179 | *** These auxiliary programs are missing or
|
---|
| 180 | *** incompatible versions: msgfmt
|
---|
| 181 | *** some features will be disabled.
|
---|
| 182 | *** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
|
---|
| 183 |
|
---|
| 184 | <para os="dh">The missing or incompatible <command>msgfmt</command> program is
|
---|
| 185 | generally harmless. This <command>msgfmt</command> program is part of the
|
---|
| 186 | Gettext package which the host distribution should provide.</para>
|
---|
| 187 |
|
---|
| 188 | <para os="dj">Compile the package:</para>
|
---|
| 189 |
|
---|
| 190 | <screen os="dk"><userinput>make</userinput></screen>
|
---|
| 191 |
|
---|
| 192 | <para os="dl">Install the package:</para>
|
---|
| 193 |
|
---|
| 194 | <screen os="dm"><userinput>make install</userinput></screen>
|
---|
| 195 |
|
---|
| 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | <sect2 role="content">
|
---|
| 199 | <title/>
|
---|
| 200 |
|
---|
| 201 | <para>Details on this package are located in <xref
|
---|
| 202 | linkend="contents-glibc" role="."/></para>
|
---|
| 203 |
|
---|
| 204 | </sect2>
|
---|
| 205 |
|
---|
| 206 | </sect1>
|
---|