[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 |
|
---|
[1863ad6] | 37 | <para os="dd">Add the following to <filename>config.cache</filename>
|
---|
| 38 | to disable ssp when building EGLIBC:</para>
|
---|
[3f8be484] | 39 |
|
---|
[1863ad6] | 40 | <screen os="de"><userinput>echo "libc_cv_ssp=no" > config.cache</userinput></screen>
|
---|
[3f8be484] | 41 |
|
---|
[dabbced] | 42 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[093b0e8] | 43 | href="../../final-system/common/eglibc.xml"
|
---|
[3f8be484] | 44 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 45 |
|
---|
[07114c98] | 46 | <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
|
---|
| 47 | AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
|
---|
[093b0e8] | 48 | ../eglibc-&eglibc-version;/configure --prefix=/tools \
|
---|
[07114c98] | 49 | --host=${CLFS_TARGET} --build=${CLFS_HOST} \
|
---|
[da4d9d8] | 50 | --disable-profile --with-tls --enable-kernel=2.6.32 \
|
---|
| 51 | --with-__thread --with-binutils=/cross-tools/bin \
|
---|
[52ed4da] | 52 | --with-headers=/tools/include --enable-obsolete-rpc \
|
---|
| 53 | --cache-file=config.cache</userinput></screen>
|
---|
[3f8be484] | 54 |
|
---|
[d3a4fc0] | 55 | <variablelist os="dg">
|
---|
[3f8be484] | 56 | <title>The meaning of the new configure options:</title>
|
---|
| 57 |
|
---|
[d3a4fc0] | 58 | <varlistentry os="dg1">
|
---|
[3f8be484] | 59 | <term><parameter>BUILD_CC="gcc"</parameter></term>
|
---|
| 60 | <listitem>
|
---|
[093b0e8] | 61 | <para>This sets EGLIBC to use the current compiler on our system. This is
|
---|
| 62 | used to create the tools EGLIBC uses during its build.</para>
|
---|
[3f8be484] | 63 | </listitem>
|
---|
| 64 | </varlistentry>
|
---|
| 65 |
|
---|
[d3a4fc0] | 66 | <varlistentry os="dg2">
|
---|
[07114c98] | 67 | <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
|
---|
[3f8be484] | 68 | <listitem>
|
---|
[093b0e8] | 69 | <para>This forces EGLIBC to use the GCC compiler that we made for our target
|
---|
[d3a4fc0] | 70 | architecture.</para>
|
---|
[3f8be484] | 71 | </listitem>
|
---|
| 72 | </varlistentry>
|
---|
| 73 |
|
---|
[d3a4fc0] | 74 | <varlistentry os="dg3">
|
---|
[07114c98] | 75 | <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
|
---|
[3f8be484] | 76 | <listitem>
|
---|
[093b0e8] | 77 | <para>This forces EGLIBC to use the <command>ar</command> utility
|
---|
[df709be] | 78 | we made for our target architecture.</para>
|
---|
[3f8be484] | 79 | </listitem>
|
---|
| 80 | </varlistentry>
|
---|
| 81 |
|
---|
[d3a4fc0] | 82 | <varlistentry os="dg4">
|
---|
[07114c98] | 83 | <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
|
---|
[3f8be484] | 84 | <listitem>
|
---|
[093b0e8] | 85 | <para>This forces EGLIBC to use the <command>ranlib</command> utility
|
---|
[df709be] | 86 | we made for our target architecture.</para>
|
---|
[3f8be484] | 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
| 89 |
|
---|
[d3a4fc0] | 90 | <varlistentry os="dg5">
|
---|
[3f8be484] | 91 | <term><parameter>--disable-profile</parameter></term>
|
---|
| 92 | <listitem>
|
---|
[d3a4fc0] | 93 | <para>This builds the libraries without profiling information.
|
---|
[e3196bd] | 94 | Omit this option if profiling on the temporary tools is necessary.</para>
|
---|
[3f8be484] | 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
| 97 |
|
---|
[d3a4fc0] | 98 | <varlistentry os="dg6">
|
---|
[3f8be484] | 99 | <term><parameter>--with-tls</parameter></term>
|
---|
| 100 | <listitem>
|
---|
[093b0e8] | 101 | <para>This tells EGLIBC to use Thread Local Storage.</para>
|
---|
[3f8be484] | 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
[82b753e0] | 105 | <varlistentry os="dg7">
|
---|
[65ab9ce] | 106 | <term><parameter>--enable-kernel=2.6.32</parameter></term>
|
---|
[c814e64] | 107 | <listitem>
|
---|
[093b0e8] | 108 | <para>This tells EGLIBC to compile the library with support
|
---|
[65ab9ce] | 109 | for 2.6.32 and later Linux kernels.</para>
|
---|
[c814e64] | 110 | </listitem>
|
---|
| 111 | </varlistentry>
|
---|
| 112 |
|
---|
[82b753e0] | 113 | <varlistentry os="dg8">
|
---|
[3f8be484] | 114 | <term><parameter>--with-__thread</parameter></term>
|
---|
| 115 | <listitem>
|
---|
[093b0e8] | 116 | <para>This tells EGLIBC to use use the __thread for libc and
|
---|
[d3a4fc0] | 117 | libpthread builds.</para>
|
---|
[3f8be484] | 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
| 120 |
|
---|
[82b753e0] | 121 | <varlistentry os="dg9">
|
---|
[bc2e3fa] | 122 | <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
|
---|
[3f8be484] | 123 | <listitem>
|
---|
[093b0e8] | 124 | <para>This tells EGLIBC to use the Binutils that are specific to
|
---|
[d3a4fc0] | 125 | our target architecture.</para>
|
---|
[3f8be484] | 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
| 128 |
|
---|
[82b753e0] | 129 | <varlistentry os="dg10">
|
---|
[c814e64] | 130 | <term><parameter>--with-headers=/tools/include</parameter></term>
|
---|
| 131 | <listitem>
|
---|
[093b0e8] | 132 | <para>This tells EGLIBC to compile itself against the headers
|
---|
[c814e64] | 133 | recently installed to the <filename class="directory">/tools</filename>
|
---|
| 134 | directory, so that it knows exactly what features the kernel has
|
---|
| 135 | and can optimize itself accordingly.</para>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
[82b753e0] | 139 | <varlistentry os="dg11">
|
---|
[3f8be484] | 140 | <term><parameter>--cache-file=config.cache</parameter></term>
|
---|
| 141 | <listitem>
|
---|
[093b0e8] | 142 | <para>This tells EGLIBC to utilize a premade cache file.</para>
|
---|
[3f8be484] | 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | </variablelist>
|
---|
| 147 |
|
---|
[d3a4fc0] | 148 | <para os="dh">During this stage the following warning might appear:</para>
|
---|
[3f8be484] | 149 |
|
---|
[d3a4fc0] | 150 | <blockquote os="di"><screen><computeroutput>configure: WARNING:
|
---|
[3f8be484] | 151 | *** These auxiliary programs are missing or
|
---|
| 152 | *** incompatible versions: msgfmt
|
---|
| 153 | *** some features will be disabled.
|
---|
| 154 | *** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
|
---|
| 155 |
|
---|
[d3a4fc0] | 156 | <para os="dj">The missing or incompatible <command>msgfmt</command> program is
|
---|
[3f8be484] | 157 | generally harmless. This <command>msgfmt</command> program is part of the
|
---|
| 158 | Gettext package which the host distribution should provide.</para>
|
---|
| 159 |
|
---|
[d3a4fc0] | 160 | <para os="dk">Compile the package:</para>
|
---|
[3f8be484] | 161 |
|
---|
[d3a4fc0] | 162 | <screen os="dl"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 163 |
|
---|
[d3a4fc0] | 164 | <para os="dm">Install the package:</para>
|
---|
[3f8be484] | 165 |
|
---|
[6203ba8] | 166 | <screen os="dn"><userinput>make install inst_vardbdir=/tools/var/db</userinput></screen>
|
---|
| 167 |
|
---|
| 168 | <para os="do"><parameter>inst_vardbdir=...</parameter> ensures that db-Makefile is not
|
---|
| 169 | installed on the host system</para>
|
---|
[3f8be484] | 170 |
|
---|
| 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="content">
|
---|
| 174 | <title/>
|
---|
| 175 |
|
---|
| 176 | <para>Details on this package are located in <xref
|
---|
[093b0e8] | 177 | linkend="contents-eglibc" role="."/></para>
|
---|
[3f8be484] | 178 |
|
---|
| 179 | </sect2>
|
---|
| 180 |
|
---|
| 181 | </sect1>
|
---|