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