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

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

Put one configure option per line

  • Property mode set to 100644
File size: 5.7 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
[b27081c4]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 --disable-profile \
50 --enable-kernel=&glibc-kernel-version; \
51 --with-binutils=/cross-tools/bin \
52 --with-headers=/tools/include \
[877cfcd]53 --enable-obsolete-rpc</userinput></screen>
[3f8be484]54
[d3a4fc0]55 <variablelist os="dg">
[3f8be484]56 <title>The meaning of the new configure options:</title>
57
[d3a4fc0]58 <varlistentry os="dg1">
[3f8be484]59 <term><parameter>BUILD_CC="gcc"</parameter></term>
60 <listitem>
[d785e9d]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>
[3f8be484]63 </listitem>
64 </varlistentry>
65
[d3a4fc0]66 <varlistentry os="dg2">
[07114c98]67 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
[3f8be484]68 <listitem>
[d785e9d]69 <para>This forces Glibc to use the GCC compiler that we made for our target
[d3a4fc0]70 architecture.</para>
[3f8be484]71 </listitem>
72 </varlistentry>
73
[d3a4fc0]74 <varlistentry os="dg3">
[07114c98]75 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
[3f8be484]76 <listitem>
[d785e9d]77 <para>This forces Glibc to use the <command>ar</command> utility
[df709be]78 we made for our target architecture.</para>
[3f8be484]79 </listitem>
80 </varlistentry>
81
[d3a4fc0]82 <varlistentry os="dg4">
[07114c98]83 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
[3f8be484]84 <listitem>
[d785e9d]85 <para>This forces Glibc to use the <command>ranlib</command> utility
[df709be]86 we made for our target architecture.</para>
[3f8be484]87 </listitem>
88 </varlistentry>
89
[d3a4fc0]90 <varlistentry os="dg5">
[3f8be484]91 <term><parameter>--disable-profile</parameter></term>
92 <listitem>
[24b004c]93 <para>This builds the libraries without profiling information.
[e3196bd]94 Omit this option if profiling on the temporary tools is necessary.</para>
[3f8be484]95 </listitem>
96 </varlistentry>
97
[d3a4fc0]98 <varlistentry os="dg6">
[2546e2d]99 <term><parameter>--enable-kernel=&glibc-kernel-version;</parameter></term>
[c814e64]100 <listitem>
[d785e9d]101 <para>This tells Glibc to compile the library with support
[2546e2d]102 for &glibc-kernel-version; and later Linux kernels.</para>
[c814e64]103 </listitem>
104 </varlistentry>
105
[dd39fc2]106 <varlistentry os="dg7">
[bc2e3fa]107 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
[3f8be484]108 <listitem>
[d785e9d]109 <para>This tells Glibc to use the Binutils that are specific to
[d3a4fc0]110 our target architecture.</para>
[3f8be484]111 </listitem>
112 </varlistentry>
113
[dd39fc2]114 <varlistentry os="dg8">
[c814e64]115 <term><parameter>--with-headers=/tools/include</parameter></term>
116 <listitem>
[d785e9d]117 <para>This tells Glibc to compile itself against the headers
[c814e64]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
[dd39fc2]124 <varlistentry os="dg9">
[e8a4711]125 <term><parameter>--enable-obsolete-rpc</parameter></term>
126 <listitem>
[d785e9d]127 <para>This tells Glibc to install rpc headers that are not installed
[e8a4711]128 by default but may be needed by other packages.</para>
129 </listitem>
130 </varlistentry>
131
[3f8be484]132 </variablelist>
133
[d3a4fc0]134 <para os="dh">During this stage the following warning might appear:</para>
[3f8be484]135
[d3a4fc0]136<blockquote os="di"><screen><computeroutput>configure: WARNING:
[3f8be484]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
[d3a4fc0]142 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
[3f8be484]143 generally harmless. This <command>msgfmt</command> program is part of the
[ab77d4a]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>
[3f8be484]147
[d3a4fc0]148 <para os="dk">Compile the package:</para>
[3f8be484]149
[d3a4fc0]150<screen os="dl"><userinput>make</userinput></screen>
[3f8be484]151
[d3a4fc0]152 <para os="dm">Install the package:</para>
[3f8be484]153
[f5706e7]154<screen os="dn"><userinput>make install</userinput></screen>
[3f8be484]155
156 </sect2>
157
158 <sect2 role="content">
159 <title/>
160
161 <para>Details on this package are located in <xref
[cbbd1e4]162 linkend="contents-glibc" role="."/></para>
[3f8be484]163
164 </sect2>
165
166</sect1>
Note: See TracBrowser for help on using the repository browser.