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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 058f867 was e8a4711, checked in by Chris Staub <chris@…>, 11 years ago

Add explanation for obsolete-rpc option

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