[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[093b0e8] | 8 | <sect1 id="ch-cross-tools-eglibc" role="wrap">
|
---|
| 9 | <?dbhtml filename="eglibc.html"?>
|
---|
[3f8be484] | 10 |
|
---|
[093b0e8] | 11 | <title>EGLIBC-&eglibc-version;</title>
|
---|
[3f8be484] | 12 |
|
---|
[093b0e8] | 13 | <indexterm zone="ch-cross-tools-eglibc">
|
---|
| 14 | <primary sortas="a-EGLIBC">EGLIBC</primary>
|
---|
[3f8be484] | 15 | <secondary>cross tools</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
[dabbced] | 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[093b0e8] | 19 | href="../../final-system/common/eglibc.xml"
|
---|
[cf66ceae] | 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
[093b0e8] | 23 | <title>Installation of EGLIBC</title>
|
---|
[3f8be484] | 24 |
|
---|
[093b0e8] | 25 | <para os="da">It should be noted that compiling EGLIBC in any way other than
|
---|
[3f8be484] | 26 | the method suggested in this book puts the stability of the system at
|
---|
| 27 | risk.</para>
|
---|
| 28 |
|
---|
[dabbced] | 29 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[093b0e8] | 30 | href="../../final-system/common/eglibc.xml"
|
---|
[3f8be484] | 31 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 32 |
|
---|
[dabbced] | 33 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[093b0e8] | 34 | href="../../final-system/common/eglibc.xml"
|
---|
[3f8be484] | 35 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 36 |
|
---|
[0220731] | 37 | <para os="dd">The following lines need to be added to
|
---|
[093b0e8] | 38 | <filename>config.cache</filename> for EGLIBC to support NPTL:</para>
|
---|
[3f8be484] | 39 |
|
---|
[c768003] | 40 | <screen os="de"><userinput>cat > config.cache << "EOF"
|
---|
[5a5e71f] | 41 | libc_cv_forced_unwind=yes
|
---|
| 42 | libc_cv_c_cleanup=yes
|
---|
[bd01f75] | 43 | libc_cv_gnu89_inline=yes
|
---|
[5e4b3b4] | 44 | libc_cv_ssp=no
|
---|
[5a5e71f] | 45 | EOF</userinput></screen>
|
---|
[3f8be484] | 46 |
|
---|
[dabbced] | 47 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[093b0e8] | 48 | href="../../final-system/common/eglibc.xml"
|
---|
[3f8be484] | 49 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 50 |
|
---|
[07114c98] | 51 | <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
|
---|
| 52 | AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
|
---|
[093b0e8] | 53 | ../eglibc-&eglibc-version;/configure --prefix=/tools \
|
---|
[07114c98] | 54 | --host=${CLFS_TARGET} --build=${CLFS_HOST} \
|
---|
[da4d9d8] | 55 | --disable-profile --with-tls --enable-kernel=2.6.32 \
|
---|
| 56 | --with-__thread --with-binutils=/cross-tools/bin \
|
---|
[52ed4da] | 57 | --with-headers=/tools/include --enable-obsolete-rpc \
|
---|
| 58 | --cache-file=config.cache</userinput></screen>
|
---|
[3f8be484] | 59 |
|
---|
[d3a4fc0] | 60 | <variablelist os="dg">
|
---|
[3f8be484] | 61 | <title>The meaning of the new configure options:</title>
|
---|
| 62 |
|
---|
[d3a4fc0] | 63 | <varlistentry os="dg1">
|
---|
[3f8be484] | 64 | <term><parameter>BUILD_CC="gcc"</parameter></term>
|
---|
| 65 | <listitem>
|
---|
[093b0e8] | 66 | <para>This sets EGLIBC to use the current compiler on our system. This is
|
---|
| 67 | used to create the tools EGLIBC uses during its build.</para>
|
---|
[3f8be484] | 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 |
|
---|
[d3a4fc0] | 71 | <varlistentry os="dg2">
|
---|
[07114c98] | 72 | <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
|
---|
[3f8be484] | 73 | <listitem>
|
---|
[093b0e8] | 74 | <para>This forces EGLIBC to use the GCC compiler that we made for our target
|
---|
[d3a4fc0] | 75 | architecture.</para>
|
---|
[3f8be484] | 76 | </listitem>
|
---|
| 77 | </varlistentry>
|
---|
| 78 |
|
---|
[d3a4fc0] | 79 | <varlistentry os="dg3">
|
---|
[07114c98] | 80 | <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
|
---|
[3f8be484] | 81 | <listitem>
|
---|
[093b0e8] | 82 | <para>This forces EGLIBC to use the <command>ar</command> utility
|
---|
[df709be] | 83 | we made for our target architecture.</para>
|
---|
[3f8be484] | 84 | </listitem>
|
---|
| 85 | </varlistentry>
|
---|
| 86 |
|
---|
[d3a4fc0] | 87 | <varlistentry os="dg4">
|
---|
[07114c98] | 88 | <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
|
---|
[3f8be484] | 89 | <listitem>
|
---|
[093b0e8] | 90 | <para>This forces EGLIBC to use the <command>ranlib</command> utility
|
---|
[df709be] | 91 | we made for our target architecture.</para>
|
---|
[3f8be484] | 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
[d3a4fc0] | 95 | <varlistentry os="dg5">
|
---|
[3f8be484] | 96 | <term><parameter>--disable-profile</parameter></term>
|
---|
| 97 | <listitem>
|
---|
[d3a4fc0] | 98 | <para>This builds the libraries without profiling information.
|
---|
[e3196bd] | 99 | Omit this option if profiling on the temporary tools is necessary.</para>
|
---|
[3f8be484] | 100 | </listitem>
|
---|
| 101 | </varlistentry>
|
---|
| 102 |
|
---|
[d3a4fc0] | 103 | <varlistentry os="dg6">
|
---|
[3f8be484] | 104 | <term><parameter>--with-tls</parameter></term>
|
---|
| 105 | <listitem>
|
---|
[093b0e8] | 106 | <para>This tells EGLIBC to use Thread Local Storage.</para>
|
---|
[3f8be484] | 107 | </listitem>
|
---|
| 108 | </varlistentry>
|
---|
| 109 |
|
---|
[82b753e0] | 110 | <varlistentry os="dg7">
|
---|
[65ab9ce] | 111 | <term><parameter>--enable-kernel=2.6.32</parameter></term>
|
---|
[c814e64] | 112 | <listitem>
|
---|
[093b0e8] | 113 | <para>This tells EGLIBC to compile the library with support
|
---|
[65ab9ce] | 114 | for 2.6.32 and later Linux kernels.</para>
|
---|
[c814e64] | 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
[82b753e0] | 118 | <varlistentry os="dg8">
|
---|
[3f8be484] | 119 | <term><parameter>--with-__thread</parameter></term>
|
---|
| 120 | <listitem>
|
---|
[093b0e8] | 121 | <para>This tells EGLIBC to use use the __thread for libc and
|
---|
[d3a4fc0] | 122 | libpthread builds.</para>
|
---|
[3f8be484] | 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
[82b753e0] | 126 | <varlistentry os="dg9">
|
---|
[bc2e3fa] | 127 | <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
|
---|
[3f8be484] | 128 | <listitem>
|
---|
[093b0e8] | 129 | <para>This tells EGLIBC to use the Binutils that are specific to
|
---|
[d3a4fc0] | 130 | our target architecture.</para>
|
---|
[3f8be484] | 131 | </listitem>
|
---|
| 132 | </varlistentry>
|
---|
| 133 |
|
---|
[82b753e0] | 134 | <varlistentry os="dg10">
|
---|
[c814e64] | 135 | <term><parameter>--with-headers=/tools/include</parameter></term>
|
---|
| 136 | <listitem>
|
---|
[093b0e8] | 137 | <para>This tells EGLIBC to compile itself against the headers
|
---|
[c814e64] | 138 | recently installed to the <filename class="directory">/tools</filename>
|
---|
| 139 | directory, so that it knows exactly what features the kernel has
|
---|
| 140 | and can optimize itself accordingly.</para>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
[82b753e0] | 144 | <varlistentry os="dg11">
|
---|
[3f8be484] | 145 | <term><parameter>--cache-file=config.cache</parameter></term>
|
---|
| 146 | <listitem>
|
---|
[093b0e8] | 147 | <para>This tells EGLIBC to utilize a premade cache file.</para>
|
---|
[3f8be484] | 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
| 150 |
|
---|
| 151 | </variablelist>
|
---|
| 152 |
|
---|
[d3a4fc0] | 153 | <para os="dh">During this stage the following warning might appear:</para>
|
---|
[3f8be484] | 154 |
|
---|
[d3a4fc0] | 155 | <blockquote os="di"><screen><computeroutput>configure: WARNING:
|
---|
[3f8be484] | 156 | *** These auxiliary programs are missing or
|
---|
| 157 | *** incompatible versions: msgfmt
|
---|
| 158 | *** some features will be disabled.
|
---|
| 159 | *** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
|
---|
| 160 |
|
---|
[d3a4fc0] | 161 | <para os="dj">The missing or incompatible <command>msgfmt</command> program is
|
---|
[3f8be484] | 162 | generally harmless. This <command>msgfmt</command> program is part of the
|
---|
| 163 | Gettext package which the host distribution should provide.</para>
|
---|
| 164 |
|
---|
[d3a4fc0] | 165 | <para os="dk">Compile the package:</para>
|
---|
[3f8be484] | 166 |
|
---|
[d3a4fc0] | 167 | <screen os="dl"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 168 |
|
---|
[d3a4fc0] | 169 | <para os="dm">Install the package:</para>
|
---|
[3f8be484] | 170 |
|
---|
[6203ba8] | 171 | <screen os="dn"><userinput>make install inst_vardbdir=/tools/var/db</userinput></screen>
|
---|
| 172 |
|
---|
| 173 | <para os="do"><parameter>inst_vardbdir=...</parameter> ensures that db-Makefile is not
|
---|
| 174 | installed on the host system</para>
|
---|
[3f8be484] | 175 |
|
---|
| 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | <sect2 role="content">
|
---|
| 179 | <title/>
|
---|
| 180 |
|
---|
| 181 | <para>Details on this package are located in <xref
|
---|
[093b0e8] | 182 | linkend="contents-eglibc" role="."/></para>
|
---|
[3f8be484] | 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | </sect1>
|
---|