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

sysvinit
Last change on this file since b84ff99 was c0c70554, checked in by Chris Staub <chris@…>, 9 years ago

No need to use --disable-profile on Glibc

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