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

systemd
Last change on this file since 5bf1b587 was 71cd9de, checked in by William Harrington <kb0iic@…>, 9 years ago

Update GLIBC from 2.21 to 2.22 and remove rttldir from config.cache.

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