source: cross-tools/common/glibc.xml@ 35df8c65

Last change on this file since 35df8c65 was 9cb6b64, checked in by Jim Gifford <clfs@…>, 18 years ago

r4209@server: jim | 2006-07-01 12:46:18 -0700
Updated variables -

LFS_TARGET is now CLFS_TARGET
LFS_HOST is now CLFS_HOST
LFS_TARGET32 is now CLFS_TARGET32
LFS is now CLFS
/mnt/lfs is now /mnt/clfs


  • Property mode set to 100644
File size: 6.5 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
[cbfa0a3]29 <para os="db">Disable linking to <filename>libgcc_eh</filename>:</para>
[bf8c11f]30
31<screen os="dc"><userinput>patch -Np1 -i ../&glibc-libgcc_eh-patch;</userinput></screen>
32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../../final-system/common/glibc.xml"
35 xpointer="xpointer(//*[@os='c'])"/>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../../final-system/common/glibc.xml"
39 xpointer="xpointer(//*[@os='d'])"/>
40
[de99e63]41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="../../final-system/common/glibc.xml"
43 xpointer="xpointer(//*[@os='s1'])"/>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../../final-system/common/glibc.xml"
47 xpointer="xpointer(//*[@os='s2'])"/>
48
[bf8c11f]49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../../final-system/common/glibc.xml"
51 xpointer="xpointer(//*[@os='e'])"/>
52
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="../../final-system/common/glibc.xml"
55 xpointer="xpointer(//*[@os='f'])"/>
56
[f9b3685d]57 <para os="dd">The following lines need to be added to
58 <filename>config.cache</filename> for Glibc to support NPTL:</para>
[bf8c11f]59
60<screen os="de"><userinput>echo "libc_cv_forced_unwind=yes" &gt; config.cache
61echo "libc_cv_c_cleanup=yes" &gt;&gt; config.cache</userinput></screen>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="../../final-system/common/glibc.xml"
65 xpointer="xpointer(//*[@os='g'])"/>
66
[9cb6b64]67<screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
68 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
[bf8c11f]69 ../glibc-&glibc-version;/configure --prefix=/tools \
[9cb6b64]70 --host=${CLFS_TARGET} --build=${CLFS_HOST} \
[bf8c11f]71 --disable-profile --enable-add-ons \
72 --with-tls --enable-kernel=2.6.0 --with-__thread \
73 --with-binutils=/cross-tools/bin --with-headers=/tools/include \
74 --cache-file=config.cache</userinput></screen>
75
[c48c555]76 <variablelist os="dg">
[bf8c11f]77 <title>The meaning of the new configure options:</title>
78
[c48c555]79 <varlistentry os="dg1">
[bf8c11f]80 <term><parameter>BUILD_CC="gcc"</parameter></term>
81 <listitem>
[cbfa0a3]82 <para>This sets Glibc to use the current compiler on our system. This is
[506b086]83 used to create the tools Glibc uses during its build.</para>
[bf8c11f]84 </listitem>
85 </varlistentry>
86
[c48c555]87 <varlistentry os="dg2">
[9cb6b64]88 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
[bf8c11f]89 <listitem>
[b09f8ce]90 <para>This forces Glibc to use the GCC compiler that we made for our target
[c48c555]91 architecture.</para>
[bf8c11f]92 </listitem>
93 </varlistentry>
94
[c48c555]95 <varlistentry os="dg3">
[9cb6b64]96 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
[bf8c11f]97 <listitem>
[b09f8ce]98 <para>This forces Glibc to use the <command>ar</command> utility
99 we made for our target architecture.</para>
[bf8c11f]100 </listitem>
101 </varlistentry>
102
[c48c555]103 <varlistentry os="dg4">
[9cb6b64]104 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
[bf8c11f]105 <listitem>
[b09f8ce]106 <para>This forces Glibc to use the <command>ranlib</command> utility
107 we made for our target architecture.</para>
[bf8c11f]108 </listitem>
109 </varlistentry>
110
[c48c555]111 <varlistentry os="dg5">
[bf8c11f]112 <term><parameter>--disable-profile</parameter></term>
113 <listitem>
[c48c555]114 <para>This builds the libraries without profiling information.
115 Omit this option if profiling on the temporary tools is necessary.</para>
[bf8c11f]116 </listitem>
117 </varlistentry>
118
[c48c555]119 <varlistentry os="dg6">
[bf8c11f]120 <term><parameter>--enable-add-ons</parameter></term>
121 <listitem>
[138b95d]122 <para>This tells Glibc to utilize all add-ons that are
123 available.</para>
[bf8c11f]124 </listitem>
125 </varlistentry>
126
[c48c555]127 <varlistentry os="dg7">
[bf8c11f]128 <term><parameter>--with-tls</parameter></term>
129 <listitem>
[cbfa0a3]130 <para>This tells Glibc to use Thread Local Storage.</para>
[bf8c11f]131 </listitem>
132 </varlistentry>
133
[c48c555]134 <varlistentry os="dg8">
[bf8c11f]135 <term><parameter>--with-__thread</parameter></term>
136 <listitem>
[cbfa0a3]137 <para>This tells Glibc to use use the __thread for libc and
[c48c555]138 libpthread builds.</para>
[bf8c11f]139 </listitem>
140 </varlistentry>
141
[c48c555]142 <varlistentry os="dg9">
[bf8c11f]143 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
144 <listitem>
[cbfa0a3]145 <para>This tells Glibc to use the Binutils that are specific to
[c48c555]146 our target architecture.</para>
[bf8c11f]147 </listitem>
148 </varlistentry>
149
[c48c555]150 <varlistentry os="dg10">
[bf8c11f]151 <term><parameter>--cache-file=config.cache</parameter></term>
152 <listitem>
[cbfa0a3]153 <para>This tells Glibc to utilize a premade cache file.</para>
[bf8c11f]154 </listitem>
155 </varlistentry>
156
157 </variablelist>
158
[c48c555]159 <para os="dh">During this stage the following warning might appear:</para>
[bf8c11f]160
[c48c555]161<blockquote os="di"><screen><computeroutput>configure: WARNING:
[bf8c11f]162*** These auxiliary programs are missing or
163*** incompatible versions: msgfmt
164*** some features will be disabled.
165*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
166
[c48c555]167 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
[bf8c11f]168 generally harmless. This <command>msgfmt</command> program is part of the
169 Gettext package which the host distribution should provide.</para>
170
[c48c555]171 <para os="dk">Compile the package:</para>
[bf8c11f]172
[c48c555]173<screen os="dl"><userinput>make</userinput></screen>
[bf8c11f]174
[c48c555]175 <para os="dm">Install the package:</para>
[bf8c11f]176
[c48c555]177<screen os="dn"><userinput>make install</userinput></screen>
[bf8c11f]178
179 </sect2>
180
181 <sect2 role="content">
182 <title/>
183
184 <para>Details on this package are located in <xref
185 linkend="contents-glibc" role="."/></para>
186
187 </sect2>
188
189</sect1>
Note: See TracBrowser for help on using the repository browser.