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

sysvinit
Last change on this file since 182b152 was dd39fc2, checked in by Chris Staub <chris@…>, 10 years ago

Removed obsolete configure options from Glibc

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