source: BOOK/cross-tools/common/eglibc.xml@ 670bf2c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 670bf2c was c8d4414, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Add a patch to EGlibc to fix a compatibility issue with Make 3.82.

  • Property mode set to 100644
File size: 7.0 KB
RevLine 
[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
[cf66ceae]18 <xi:include xmlns:xi="http://www.w3.org/2003/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
[c8d4414]29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
30 href="../../final-system/common/eglibc.xml"
31 xpointer="xpointer(//*[@os='mp1'])"/>
32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../../final-system/common/eglibc.xml"
35 xpointer="xpointer(//*[@os='mp2'])"/>
36
[6d4c909]37 <para os="db">Disable linking to <filename>libgcc_eh</filename>:</para>
[3f8be484]38
[093b0e8]39<screen os="dc"><userinput>cp -v Makeconfig{,.orig}
40sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig</userinput></screen>
[3f8be484]41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[093b0e8]43 href="../../final-system/common/eglibc.xml"
[3f8be484]44 xpointer="xpointer(//*[@os='e'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[093b0e8]47 href="../../final-system/common/eglibc.xml"
[3f8be484]48 xpointer="xpointer(//*[@os='f'])"/>
49
[0220731]50 <para os="dd">The following lines need to be added to
[093b0e8]51 <filename>config.cache</filename> for EGLIBC to support NPTL:</para>
[3f8be484]52
[c768003]53<screen os="de"><userinput>cat &gt; config.cache &lt;&lt; "EOF"
[5a5e71f]54libc_cv_forced_unwind=yes
55libc_cv_c_cleanup=yes
[bd01f75]56libc_cv_gnu89_inline=yes
[5e4b3b4]57libc_cv_ssp=no
[5a5e71f]58EOF</userinput></screen>
[3f8be484]59
60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[093b0e8]61 href="../../final-system/common/eglibc.xml"
[3f8be484]62 xpointer="xpointer(//*[@os='g'])"/>
63
[07114c98]64<screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
65 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
[093b0e8]66 ../eglibc-&eglibc-version;/configure --prefix=/tools \
[07114c98]67 --host=${CLFS_TARGET} --build=${CLFS_HOST} \
[3f8be484]68 --disable-profile --enable-add-ons \
69 --with-tls --enable-kernel=2.6.0 --with-__thread \
[bc2e3fa]70 --with-binutils=/cross-tools/bin --with-headers=/tools/include \
[3f8be484]71 --cache-file=config.cache</userinput></screen>
72
[d3a4fc0]73 <variablelist os="dg">
[3f8be484]74 <title>The meaning of the new configure options:</title>
75
[d3a4fc0]76 <varlistentry os="dg1">
[3f8be484]77 <term><parameter>BUILD_CC="gcc"</parameter></term>
78 <listitem>
[093b0e8]79 <para>This sets EGLIBC to use the current compiler on our system. This is
80 used to create the tools EGLIBC uses during its build.</para>
[3f8be484]81 </listitem>
82 </varlistentry>
83
[d3a4fc0]84 <varlistentry os="dg2">
[07114c98]85 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
[3f8be484]86 <listitem>
[093b0e8]87 <para>This forces EGLIBC to use the GCC compiler that we made for our target
[d3a4fc0]88 architecture.</para>
[3f8be484]89 </listitem>
90 </varlistentry>
91
[d3a4fc0]92 <varlistentry os="dg3">
[07114c98]93 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
[3f8be484]94 <listitem>
[093b0e8]95 <para>This forces EGLIBC to use the <command>ar</command> utility
[df709be]96 we made for our target architecture.</para>
[3f8be484]97 </listitem>
98 </varlistentry>
99
[d3a4fc0]100 <varlistentry os="dg4">
[07114c98]101 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
[3f8be484]102 <listitem>
[093b0e8]103 <para>This forces EGLIBC to use the <command>ranlib</command> utility
[df709be]104 we made for our target architecture.</para>
[3f8be484]105 </listitem>
106 </varlistentry>
107
[d3a4fc0]108 <varlistentry os="dg5">
[3f8be484]109 <term><parameter>--disable-profile</parameter></term>
110 <listitem>
[d3a4fc0]111 <para>This builds the libraries without profiling information.
[e3196bd]112 Omit this option if profiling on the temporary tools is necessary.</para>
[3f8be484]113 </listitem>
114 </varlistentry>
115
[d3a4fc0]116 <varlistentry os="dg6">
[3f8be484]117 <term><parameter>--enable-add-ons</parameter></term>
118 <listitem>
[093b0e8]119 <para>This tells EGLIBC to utilize all add-ons that are
[e9e2255]120 available.</para>
[3f8be484]121 </listitem>
122 </varlistentry>
123
[d3a4fc0]124 <varlistentry os="dg7">
[3f8be484]125 <term><parameter>--with-tls</parameter></term>
126 <listitem>
[093b0e8]127 <para>This tells EGLIBC to use Thread Local Storage.</para>
[3f8be484]128 </listitem>
129 </varlistentry>
130
[d3a4fc0]131 <varlistentry os="dg8">
[c814e64]132 <term><parameter>--enable-kernel=2.6.0</parameter></term>
133 <listitem>
[093b0e8]134 <para>This tells EGLIBC to compile the library with support
[c814e64]135 for 2.6.x Linux kernels.</para>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry os="dg9">
[3f8be484]140 <term><parameter>--with-__thread</parameter></term>
141 <listitem>
[093b0e8]142 <para>This tells EGLIBC to use use the __thread for libc and
[d3a4fc0]143 libpthread builds.</para>
[3f8be484]144 </listitem>
145 </varlistentry>
146
[c814e64]147 <varlistentry os="dg10">
[bc2e3fa]148 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
[3f8be484]149 <listitem>
[093b0e8]150 <para>This tells EGLIBC to use the Binutils that are specific to
[d3a4fc0]151 our target architecture.</para>
[3f8be484]152 </listitem>
153 </varlistentry>
154
[c814e64]155 <varlistentry os="dg11">
156 <term><parameter>--with-headers=/tools/include</parameter></term>
157 <listitem>
[093b0e8]158 <para>This tells EGLIBC to compile itself against the headers
[c814e64]159 recently installed to the <filename class="directory">/tools</filename>
160 directory, so that it knows exactly what features the kernel has
161 and can optimize itself accordingly.</para>
162 </listitem>
163 </varlistentry>
164
165 <varlistentry os="dg12">
[3f8be484]166 <term><parameter>--cache-file=config.cache</parameter></term>
167 <listitem>
[093b0e8]168 <para>This tells EGLIBC to utilize a premade cache file.</para>
[3f8be484]169 </listitem>
170 </varlistentry>
171
172 </variablelist>
173
[d3a4fc0]174 <para os="dh">During this stage the following warning might appear:</para>
[3f8be484]175
[d3a4fc0]176<blockquote os="di"><screen><computeroutput>configure: WARNING:
[3f8be484]177*** These auxiliary programs are missing or
178*** incompatible versions: msgfmt
179*** some features will be disabled.
180*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
181
[d3a4fc0]182 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
[3f8be484]183 generally harmless. This <command>msgfmt</command> program is part of the
184 Gettext package which the host distribution should provide.</para>
185
[d3a4fc0]186 <para os="dk">Compile the package:</para>
[3f8be484]187
[d3a4fc0]188<screen os="dl"><userinput>make</userinput></screen>
[3f8be484]189
[d3a4fc0]190 <para os="dm">Install the package:</para>
[3f8be484]191
[d3a4fc0]192<screen os="dn"><userinput>make install</userinput></screen>
[3f8be484]193
194 </sect2>
195
196 <sect2 role="content">
197 <title/>
198
199 <para>Details on this package are located in <xref
[093b0e8]200 linkend="contents-eglibc" role="."/></para>
[3f8be484]201
202 </sect2>
203
204</sect1>
Note: See TracBrowser for help on using the repository browser.