source: cross-tools/common/glibc.xml@ b002c77

Last change on this file since b002c77 was 2659c74, checked in by Jim Gifford <clfs@…>, 19 years ago

r677@server (orig r675): manuel | 2005-11-10 03:13:57 -0800
Including patches.ent from general.ent

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