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

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 52dbae7 was da4d9d8, checked in by William Harrington <kb0iic@…>, 12 years ago

Add missing back slashes to end of configure commands.

  • Property mode set to 100644
File size: 7.0 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 --with-tls --enable-kernel=2.6.32 \
61 --with-__thread --with-binutils=/cross-tools/bin \
62 --with-headers=/tools/include --cache-file=config.cache</userinput></screen>
63
64 <variablelist os="dg">
65 <title>The meaning of the new configure options:</title>
66
67 <varlistentry os="dg1">
68 <term><parameter>BUILD_CC="gcc"</parameter></term>
69 <listitem>
70 <para>This sets EGLIBC to use the current compiler on our system. This is
71 used to create the tools EGLIBC uses during its build.</para>
72 </listitem>
73 </varlistentry>
74
75 <varlistentry os="dg2">
76 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
77 <listitem>
78 <para>This forces EGLIBC to use the GCC compiler that we made for our target
79 architecture.</para>
80 </listitem>
81 </varlistentry>
82
83 <varlistentry os="dg3">
84 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
85 <listitem>
86 <para>This forces EGLIBC to use the <command>ar</command> utility
87 we made for our target architecture.</para>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry os="dg4">
92 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
93 <listitem>
94 <para>This forces EGLIBC to use the <command>ranlib</command> utility
95 we made for our target architecture.</para>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry os="dg5">
100 <term><parameter>--disable-profile</parameter></term>
101 <listitem>
102 <para>This builds the libraries without profiling information.
103 Omit this option if profiling on the temporary tools is necessary.</para>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry os="dg6">
108 <term><parameter>--with-tls</parameter></term>
109 <listitem>
110 <para>This tells EGLIBC to use Thread Local Storage.</para>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry os="dg7">
115 <term><parameter>--enable-kernel=2.6.32</parameter></term>
116 <listitem>
117 <para>This tells EGLIBC to compile the library with support
118 for 2.6.32 and later Linux kernels.</para>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry os="dg8">
123 <term><parameter>--with-__thread</parameter></term>
124 <listitem>
125 <para>This tells EGLIBC to use use the __thread for libc and
126 libpthread builds.</para>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry os="dg9">
131 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
132 <listitem>
133 <para>This tells EGLIBC to use the Binutils that are specific to
134 our target architecture.</para>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry os="dg10">
139 <term><parameter>--with-headers=/tools/include</parameter></term>
140 <listitem>
141 <para>This tells EGLIBC to compile itself against the headers
142 recently installed to the <filename class="directory">/tools</filename>
143 directory, so that it knows exactly what features the kernel has
144 and can optimize itself accordingly.</para>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry os="dg11">
149 <term><parameter>--cache-file=config.cache</parameter></term>
150 <listitem>
151 <para>This tells EGLIBC to utilize a premade cache file.</para>
152 </listitem>
153 </varlistentry>
154
155 </variablelist>
156
157 <para os="dh">During this stage the following warning might appear:</para>
158
159<blockquote os="di"><screen><computeroutput>configure: WARNING:
160*** These auxiliary programs are missing or
161*** incompatible versions: msgfmt
162*** some features will be disabled.
163*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
164
165 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
166 generally harmless. This <command>msgfmt</command> program is part of the
167 Gettext package which the host distribution should provide.</para>
168
169 <para os="dk">Compile the package:</para>
170
171<screen os="dl"><userinput>make</userinput></screen>
172
173 <para os="dm">Install the package:</para>
174
175<screen os="dn"><userinput>make install inst_vardbdir=/tools/var/db</userinput></screen>
176
177<para os="do"><parameter>inst_vardbdir=...</parameter> ensures that db-Makefile is not
178 installed on the host system</para>
179
180 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
181 href="../../final-system/common/eglibc.xml"
182 xpointer="xpointer(//*[@os='ra'])"/>
183
184<screen os="rb"><userinput>cp -v ../eglibc-&eglibc-version;/sunrpc/rpc/*.h /tools/include/rpc
185cp -v ../eglibc-&eglibc-version;/sunrpc/rpcsvc/*.h /tools/include/rpcsvc
186cp -v ../eglibc-&eglibc-version;/nis/rpcsvc/*.h /tools/include/rpcsvc</userinput></screen>
187
188 </sect2>
189
190 <sect2 role="content">
191 <title/>
192
193 <para>Details on this package are located in <xref
194 linkend="contents-eglibc" role="."/></para>
195
196 </sect2>
197
198</sect1>
Note: See TracBrowser for help on using the repository browser.