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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since bb5a07c was d785e9d, checked in by Chris Staub <chris@…>, 11 years ago

Standardize capitalization of Glibc

  • Property mode set to 100644
File size: 6.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
[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} \
[da4d9d8]57 --disable-profile --with-tls --enable-kernel=2.6.32 \
58 --with-__thread --with-binutils=/cross-tools/bin \
[52ed4da]59 --with-headers=/tools/include --enable-obsolete-rpc \
60 --cache-file=config.cache</userinput></screen>
[3f8be484]61
[d3a4fc0]62 <variablelist os="dg">
[3f8be484]63 <title>The meaning of the new configure options:</title>
64
[d3a4fc0]65 <varlistentry os="dg1">
[3f8be484]66 <term><parameter>BUILD_CC="gcc"</parameter></term>
67 <listitem>
[d785e9d]68 <para>This sets Glibc to use the current compiler on our system. This is
69 used to create the tools Glibc uses during its build.</para>
[3f8be484]70 </listitem>
71 </varlistentry>
72
[d3a4fc0]73 <varlistentry os="dg2">
[07114c98]74 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
[3f8be484]75 <listitem>
[d785e9d]76 <para>This forces Glibc to use the GCC compiler that we made for our target
[d3a4fc0]77 architecture.</para>
[3f8be484]78 </listitem>
79 </varlistentry>
80
[d3a4fc0]81 <varlistentry os="dg3">
[07114c98]82 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
[3f8be484]83 <listitem>
[d785e9d]84 <para>This forces Glibc to use the <command>ar</command> utility
[df709be]85 we made for our target architecture.</para>
[3f8be484]86 </listitem>
87 </varlistentry>
88
[d3a4fc0]89 <varlistentry os="dg4">
[07114c98]90 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
[3f8be484]91 <listitem>
[d785e9d]92 <para>This forces Glibc to use the <command>ranlib</command> utility
[df709be]93 we made for our target architecture.</para>
[3f8be484]94 </listitem>
95 </varlistentry>
96
[d3a4fc0]97 <varlistentry os="dg5">
[3f8be484]98 <term><parameter>--disable-profile</parameter></term>
99 <listitem>
[24b004c]100 <para>This builds the libraries without profiling information.
[e3196bd]101 Omit this option if profiling on the temporary tools is necessary.</para>
[3f8be484]102 </listitem>
103 </varlistentry>
104
[d3a4fc0]105 <varlistentry os="dg6">
[3f8be484]106 <term><parameter>--with-tls</parameter></term>
107 <listitem>
[d785e9d]108 <para>This tells Glibc to use Thread Local Storage.</para>
[3f8be484]109 </listitem>
110 </varlistentry>
111
[82b753e0]112 <varlistentry os="dg7">
[65ab9ce]113 <term><parameter>--enable-kernel=2.6.32</parameter></term>
[c814e64]114 <listitem>
[d785e9d]115 <para>This tells Glibc to compile the library with support
[65ab9ce]116 for 2.6.32 and later Linux kernels.</para>
[c814e64]117 </listitem>
118 </varlistentry>
119
[82b753e0]120 <varlistentry os="dg8">
[3f8be484]121 <term><parameter>--with-__thread</parameter></term>
122 <listitem>
[d785e9d]123 <para>This tells Glibc to use use the __thread for libc and
[d3a4fc0]124 libpthread builds.</para>
[3f8be484]125 </listitem>
126 </varlistentry>
127
[82b753e0]128 <varlistentry os="dg9">
[bc2e3fa]129 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
[3f8be484]130 <listitem>
[d785e9d]131 <para>This tells Glibc to use the Binutils that are specific to
[d3a4fc0]132 our target architecture.</para>
[3f8be484]133 </listitem>
134 </varlistentry>
135
[82b753e0]136 <varlistentry os="dg10">
[c814e64]137 <term><parameter>--with-headers=/tools/include</parameter></term>
138 <listitem>
[d785e9d]139 <para>This tells Glibc to compile itself against the headers
[c814e64]140 recently installed to the <filename class="directory">/tools</filename>
141 directory, so that it knows exactly what features the kernel has
142 and can optimize itself accordingly.</para>
143 </listitem>
144 </varlistentry>
145
[82b753e0]146 <varlistentry os="dg11">
[e8a4711]147 <term><parameter>--enable-obsolete-rpc</parameter></term>
148 <listitem>
[d785e9d]149 <para>This tells Glibc to install rpc headers that are not installed
[e8a4711]150 by default but may be needed by other packages.</para>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry os="dg12">
[3f8be484]155 <term><parameter>--cache-file=config.cache</parameter></term>
156 <listitem>
[d785e9d]157 <para>This tells Glibc to utilize a premade cache file.</para>
[3f8be484]158 </listitem>
159 </varlistentry>
160
161 </variablelist>
162
[d3a4fc0]163 <para os="dh">During this stage the following warning might appear:</para>
[3f8be484]164
[d3a4fc0]165<blockquote os="di"><screen><computeroutput>configure: WARNING:
[3f8be484]166*** These auxiliary programs are missing or
167*** incompatible versions: msgfmt
168*** some features will be disabled.
169*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
170
[d3a4fc0]171 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
[3f8be484]172 generally harmless. This <command>msgfmt</command> program is part of the
173 Gettext package which the host distribution should provide.</para>
174
[d3a4fc0]175 <para os="dk">Compile the package:</para>
[3f8be484]176
[d3a4fc0]177<screen os="dl"><userinput>make</userinput></screen>
[3f8be484]178
[d3a4fc0]179 <para os="dm">Install the package:</para>
[3f8be484]180
[f5706e7]181<screen os="dn"><userinput>make install</userinput></screen>
[3f8be484]182
183 </sect2>
184
185 <sect2 role="content">
186 <title/>
187
188 <para>Details on this package are located in <xref
[cbbd1e4]189 linkend="contents-glibc" role="."/></para>
[3f8be484]190
191 </sect2>
192
193</sect1>
Note: See TracBrowser for help on using the repository browser.