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

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

Change the XInclude schema path from 2003 to 2001. 2003 is depreciated
according to w3.org and 2001 should be used instead.

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