source: BOOK/cross-tools/common/glibc.xml@ d78696a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d78696a was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 6.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-cross-tools-glibc" role="wrap">
11 <?dbhtml filename="glibc.html"?>
12
13 <title>Glibc-&glibc-version;</title>
14
15 <indexterm zone="ch-cross-tools-glibc">
16 <primary sortas="a-Glibc">Glibc</primary>
17 <secondary>cross tools</secondary>
18 </indexterm>
19
20 <sect2 role="package">
21 <title/>
22
23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
24 href="../../final-system/common/glibc.xml"
25 xpointer="xpointer(//*[@role='package']/para[1])"/>
26
27 <segmentedlist>
28 <segtitle>&buildtime;</segtitle>
29 <segtitle>&diskspace;</segtitle>
30
31 <seglistitem>
32 <seg>Not checked yet</seg>
33 <seg>Not checked yet</seg>
34 </seglistitem>
35 </segmentedlist>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../../final-system/common/glibc.xml"
39 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Glibc</title>
45
46 <para os="da">It should be noted that compiling Glibc in any way other than
47 the method suggested in this book puts the stability of the system at
48 risk.</para>
49
50 <para os="db">We will disable the linking to
51 <filename>libgcc_eh</filename>:</para>
52
53<screen os="dc"><userinput>patch -Np1 -i ../&glibc-libgcc_eh-patch;</userinput></screen>
54
55 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
56 href="../../final-system/common/glibc.xml"
57 xpointer="xpointer(//*[@os='c'])"/>
58
59 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
60 href="../../final-system/common/glibc.xml"
61 xpointer="xpointer(//*[@os='d'])"/>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="../../final-system/common/glibc.xml"
65 xpointer="xpointer(//*[@os='e'])"/>
66
67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
68 href="../../final-system/common/glibc.xml"
69 xpointer="xpointer(//*[@os='f'])"/>
70
71 <para os="dd">For NPTL enabled systems we will need to add the following lines to
72 <filename>config.cache</filename>:</para>
73
74<screen os="de"><userinput>echo "libc_cv_forced_unwind=yes" &gt; config.cache
75echo "libc_cv_c_cleanup=yes" &gt;&gt; config.cache</userinput></screen>
76
77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
78 href="../../final-system/common/glibc.xml"
79 xpointer="xpointer(//*[@os='g'])"/>
80
81<screen><userinput>BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
82 AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
83 ../glibc-&glibc-version;/configure --prefix=/tools \
84 --host=${LFS_TARGET} --build=${LFS_HOST} \
85 --disable-profile --enable-add-ons \
86 --with-tls --enable-kernel=2.6.0 --with-__thread \
87 --with-binutils=/cross-tools/bin --with-headers=/tools/include \
88 --cache-file=config.cache</userinput></screen>
89
90 <variablelist os="di">
91 <title>The meaning of the new configure options:</title>
92
93 <varlistentry os="di1">
94 <term><parameter>BUILD_CC="gcc"</parameter></term>
95 <listitem>
96 <para>This do ...</para>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry os="di2">
101 <term><parameter>CC="${LFS_TARGET}-gcc"</parameter></term>
102 <listitem>
103 <para>This do ...</para>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry os="di3">
108 <term><parameter>AR="${LFS_TARGET}-ar"</parameter></term>
109 <listitem>
110 <para>This do ...</para>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry os="di4">
115 <term><parameter>RANLIB="${LFS_TARGET}-ranlib"</parameter></term>
116 <listitem>
117 <para>This do ...</para>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry os="di5">
122 <term><parameter>--disable-profile</parameter></term>
123 <listitem>
124 <para>This do ...</para>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry os="di6">
129 <term><parameter>--enable-add-ons</parameter></term>
130 <listitem>
131 <para>This do ...</para>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry os="di7">
136 <term><parameter>--with-tls</parameter></term>
137 <listitem>
138 <para>This do ...</para>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry os="di8">
143 <term><parameter>--with-__thread</parameter></term>
144 <listitem>
145 <para>This do ...</para>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry os="di9">
150 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
151 <listitem>
152 <para>This do ...</para>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry os="di10">
157 <term><parameter>--cache-file=config.cache</parameter></term>
158 <listitem>
159 <para>This do ...</para>
160 </listitem>
161 </varlistentry>
162
163 </variablelist>
164
165 <para os="df">During this stage the following warning might appear:</para>
166
167<blockquote os="dg"><screen><computeroutput>configure: WARNING:
168*** These auxiliary programs are missing or
169*** incompatible versions: msgfmt
170*** some features will be disabled.
171*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
172
173 <para os="dh">The missing or incompatible <command>msgfmt</command> program is
174 generally harmless. This <command>msgfmt</command> program is part of the
175 Gettext package which the host distribution should provide.</para>
176
177 <para os="dj">Compile the package:</para>
178
179<screen os="dk"><userinput>make</userinput></screen>
180
181 <para os="dl">Install the package:</para>
182
183<screen os="dm"><userinput>make install</userinput></screen>
184
185 </sect2>
186
187 <sect2 role="content">
188 <title/>
189
190 <para>Details on this package are located in <xref
191 linkend="contents-glibc" role="."/></para>
192
193 </sect2>
194
195</sect1>
Note: See TracBrowser for help on using the repository browser.