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