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

sysvinit
Last change on this file since 3d92c8d was 877cfcd, 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
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[cbbd1e4]8<sect1 id="ch-cross-tools-glibc" role="wrap">
9 <?dbhtml filename="glibc.html"?>
[3f8be484]10
[d785e9d]11 <title>Glibc-&glibc-version;</title>
[3f8be484]12
[cbbd1e4]13 <indexterm zone="ch-cross-tools-glibc">
[d785e9d]14 <primary sortas="a-Glibc">Glibc</primary>
[3f8be484]15 <secondary>cross tools</secondary>
16 </indexterm>
17
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cbbd1e4]19 href="../../final-system/common/glibc.xml"
[cf66ceae]20 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]21
22 <sect2 role="installation">
[d785e9d]23 <title>Installation of Glibc</title>
[3f8be484]24
[d785e9d]25 <para os="da">It should be noted that compiling Glibc in any way other than
[3f8be484]26 the method suggested in this book puts the stability of the system at
27 risk.</para>
28
[dabbced]29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cbbd1e4]30 href="../../final-system/common/glibc.xml"
[3f8be484]31 xpointer="xpointer(//*[@os='e'])"/>
32
[dabbced]33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cbbd1e4]34 href="../../final-system/common/glibc.xml"
[3f8be484]35 xpointer="xpointer(//*[@os='f'])"/>
36
[dabbced]37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cbbd1e4]38 href="../../final-system/common/glibc.xml"
[3f8be484]39 xpointer="xpointer(//*[@os='g'])"/>
40
[07114c98]41<screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
42 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
[cbbd1e4]43 ../glibc-&glibc-version;/configure --prefix=/tools \
[07114c98]44 --host=${CLFS_TARGET} --build=${CLFS_HOST} \
[dd39fc2]45 --disable-profile --enable-kernel=&glibc-kernel-version; \
46 --with-binutils=/cross-tools/bin --with-headers=/tools/include \
[877cfcd]47 --enable-obsolete-rpc</userinput></screen>
[3f8be484]48
[d3a4fc0]49 <variablelist os="dg">
[3f8be484]50 <title>The meaning of the new configure options:</title>
51
[d3a4fc0]52 <varlistentry os="dg1">
[3f8be484]53 <term><parameter>BUILD_CC="gcc"</parameter></term>
54 <listitem>
[d785e9d]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>
[3f8be484]57 </listitem>
58 </varlistentry>
59
[d3a4fc0]60 <varlistentry os="dg2">
[07114c98]61 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
[3f8be484]62 <listitem>
[d785e9d]63 <para>This forces Glibc to use the GCC compiler that we made for our target
[d3a4fc0]64 architecture.</para>
[3f8be484]65 </listitem>
66 </varlistentry>
67
[d3a4fc0]68 <varlistentry os="dg3">
[07114c98]69 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
[3f8be484]70 <listitem>
[d785e9d]71 <para>This forces Glibc to use the <command>ar</command> utility
[df709be]72 we made for our target architecture.</para>
[3f8be484]73 </listitem>
74 </varlistentry>
75
[d3a4fc0]76 <varlistentry os="dg4">
[07114c98]77 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
[3f8be484]78 <listitem>
[d785e9d]79 <para>This forces Glibc to use the <command>ranlib</command> utility
[df709be]80 we made for our target architecture.</para>
[3f8be484]81 </listitem>
82 </varlistentry>
83
[d3a4fc0]84 <varlistentry os="dg5">
[3f8be484]85 <term><parameter>--disable-profile</parameter></term>
86 <listitem>
[24b004c]87 <para>This builds the libraries without profiling information.
[e3196bd]88 Omit this option if profiling on the temporary tools is necessary.</para>
[3f8be484]89 </listitem>
90 </varlistentry>
91
[d3a4fc0]92 <varlistentry os="dg6">
[2546e2d]93 <term><parameter>--enable-kernel=&glibc-kernel-version;</parameter></term>
[c814e64]94 <listitem>
[d785e9d]95 <para>This tells Glibc to compile the library with support
[2546e2d]96 for &glibc-kernel-version; and later Linux kernels.</para>
[c814e64]97 </listitem>
98 </varlistentry>
99
[dd39fc2]100 <varlistentry os="dg7">
[bc2e3fa]101 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
[3f8be484]102 <listitem>
[d785e9d]103 <para>This tells Glibc to use the Binutils that are specific to
[d3a4fc0]104 our target architecture.</para>
[3f8be484]105 </listitem>
106 </varlistentry>
107
[dd39fc2]108 <varlistentry os="dg8">
[c814e64]109 <term><parameter>--with-headers=/tools/include</parameter></term>
110 <listitem>
[d785e9d]111 <para>This tells Glibc to compile itself against the headers
[c814e64]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
[dd39fc2]118 <varlistentry os="dg9">
[e8a4711]119 <term><parameter>--enable-obsolete-rpc</parameter></term>
120 <listitem>
[d785e9d]121 <para>This tells Glibc to install rpc headers that are not installed
[e8a4711]122 by default but may be needed by other packages.</para>
123 </listitem>
124 </varlistentry>
125
[3f8be484]126 </variablelist>
127
[d3a4fc0]128 <para os="dh">During this stage the following warning might appear:</para>
[3f8be484]129
[d3a4fc0]130<blockquote os="di"><screen><computeroutput>configure: WARNING:
[3f8be484]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
[d3a4fc0]136 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
[3f8be484]137 generally harmless. This <command>msgfmt</command> program is part of the
[ab77d4a]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>
[3f8be484]141
[d3a4fc0]142 <para os="dk">Compile the package:</para>
[3f8be484]143
[d3a4fc0]144<screen os="dl"><userinput>make</userinput></screen>
[3f8be484]145
[d3a4fc0]146 <para os="dm">Install the package:</para>
[3f8be484]147
[f5706e7]148<screen os="dn"><userinput>make install</userinput></screen>
[3f8be484]149
150 </sect2>
151
152 <sect2 role="content">
153 <title/>
154
155 <para>Details on this package are located in <xref
[cbbd1e4]156 linkend="contents-glibc" role="."/></para>
[3f8be484]157
158 </sect2>
159
160</sect1>
Note: See TracBrowser for help on using the repository browser.