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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since eaf863f was cbbd1e4, checked in by William Harrington <kb0iic@…>, 11 years ago

Migrating EGLIBC to GLIBC since EGLIBC is end of life at 2_19 branch. Mailing list suggests using Glibc unless strict need of use from eglibc 2_19 branch. Trunk is frozen. Rename all EGLIBC and Eglibc and eglibc text to GLIBC Glibc and 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
[cbbd1e4]11 <title>GLIBC-&glibc-version;</title>
[3f8be484]12
[cbbd1e4]13 <indexterm zone="ch-cross-tools-glibc">
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">
[cbbd1e4]23 <title>Installation of GLIBC</title>
[3f8be484]24
[cbbd1e4]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
33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cbbd1e4]34 href="../../final-system/common/glibc.xml"
[00a58649]35 xpointer="xpointer(//*[@os='s2'])"/>
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='e'])"/>
40
[dabbced]41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cbbd1e4]42 href="../../final-system/common/glibc.xml"
[3f8be484]43 xpointer="xpointer(//*[@os='f'])"/>
44
[1863ad6]45 <para os="dd">Add the following to <filename>config.cache</filename>
[cbbd1e4]46 to disable ssp when building GLIBC:</para>
[3f8be484]47
[1863ad6]48<screen os="de"><userinput>echo "libc_cv_ssp=no" &gt; config.cache</userinput></screen>
[3f8be484]49
[dabbced]50 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cbbd1e4]51 href="../../final-system/common/glibc.xml"
[3f8be484]52 xpointer="xpointer(//*[@os='g'])"/>
53
[07114c98]54<screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
55 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
[cbbd1e4]56 ../glibc-&glibc-version;/configure --prefix=/tools \
[07114c98]57 --host=${CLFS_TARGET} --build=${CLFS_HOST} \
[da4d9d8]58 --disable-profile --with-tls --enable-kernel=2.6.32 \
59 --with-__thread --with-binutils=/cross-tools/bin \
[52ed4da]60 --with-headers=/tools/include --enable-obsolete-rpc \
61 --cache-file=config.cache</userinput></screen>
[3f8be484]62
[d3a4fc0]63 <variablelist os="dg">
[3f8be484]64 <title>The meaning of the new configure options:</title>
65
[d3a4fc0]66 <varlistentry os="dg1">
[3f8be484]67 <term><parameter>BUILD_CC="gcc"</parameter></term>
68 <listitem>
[cbbd1e4]69 <para>This sets GLIBC to use the current compiler on our system. This is
70 used to create the tools GLIBC uses during its build.</para>
[3f8be484]71 </listitem>
72 </varlistentry>
73
[d3a4fc0]74 <varlistentry os="dg2">
[07114c98]75 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
[3f8be484]76 <listitem>
[cbbd1e4]77 <para>This forces GLIBC to use the GCC compiler that we made for our target
[d3a4fc0]78 architecture.</para>
[3f8be484]79 </listitem>
80 </varlistentry>
81
[d3a4fc0]82 <varlistentry os="dg3">
[07114c98]83 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
[3f8be484]84 <listitem>
[cbbd1e4]85 <para>This forces GLIBC to use the <command>ar</command> utility
[df709be]86 we made for our target architecture.</para>
[3f8be484]87 </listitem>
88 </varlistentry>
89
[d3a4fc0]90 <varlistentry os="dg4">
[07114c98]91 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
[3f8be484]92 <listitem>
[cbbd1e4]93 <para>This forces GLIBC to use the <command>ranlib</command> utility
[df709be]94 we made for our target architecture.</para>
[3f8be484]95 </listitem>
96 </varlistentry>
97
[d3a4fc0]98 <varlistentry os="dg5">
[3f8be484]99 <term><parameter>--disable-profile</parameter></term>
100 <listitem>
[d3a4fc0]101 <para>This builds the libraries without profiling information.
[e3196bd]102 Omit this option if profiling on the temporary tools is necessary.</para>
[3f8be484]103 </listitem>
104 </varlistentry>
105
[d3a4fc0]106 <varlistentry os="dg6">
[3f8be484]107 <term><parameter>--with-tls</parameter></term>
108 <listitem>
[cbbd1e4]109 <para>This tells GLIBC to use Thread Local Storage.</para>
[3f8be484]110 </listitem>
111 </varlistentry>
112
[82b753e0]113 <varlistentry os="dg7">
[65ab9ce]114 <term><parameter>--enable-kernel=2.6.32</parameter></term>
[c814e64]115 <listitem>
[cbbd1e4]116 <para>This tells GLIBC to compile the library with support
[65ab9ce]117 for 2.6.32 and later Linux kernels.</para>
[c814e64]118 </listitem>
119 </varlistentry>
120
[82b753e0]121 <varlistentry os="dg8">
[3f8be484]122 <term><parameter>--with-__thread</parameter></term>
123 <listitem>
[cbbd1e4]124 <para>This tells GLIBC to use use the __thread for libc and
[d3a4fc0]125 libpthread builds.</para>
[3f8be484]126 </listitem>
127 </varlistentry>
128
[82b753e0]129 <varlistentry os="dg9">
[bc2e3fa]130 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
[3f8be484]131 <listitem>
[cbbd1e4]132 <para>This tells GLIBC to use the Binutils that are specific to
[d3a4fc0]133 our target architecture.</para>
[3f8be484]134 </listitem>
135 </varlistentry>
136
[82b753e0]137 <varlistentry os="dg10">
[c814e64]138 <term><parameter>--with-headers=/tools/include</parameter></term>
139 <listitem>
[cbbd1e4]140 <para>This tells GLIBC to compile itself against the headers
[c814e64]141 recently installed to the <filename class="directory">/tools</filename>
142 directory, so that it knows exactly what features the kernel has
143 and can optimize itself accordingly.</para>
144 </listitem>
145 </varlistentry>
146
[82b753e0]147 <varlistentry os="dg11">
[3f8be484]148 <term><parameter>--cache-file=config.cache</parameter></term>
149 <listitem>
[cbbd1e4]150 <para>This tells GLIBC to utilize a premade cache file.</para>
[3f8be484]151 </listitem>
152 </varlistentry>
153
154 </variablelist>
155
[d3a4fc0]156 <para os="dh">During this stage the following warning might appear:</para>
[3f8be484]157
[d3a4fc0]158<blockquote os="di"><screen><computeroutput>configure: WARNING:
[3f8be484]159*** These auxiliary programs are missing or
160*** incompatible versions: msgfmt
161*** some features will be disabled.
162*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
163
[d3a4fc0]164 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
[3f8be484]165 generally harmless. This <command>msgfmt</command> program is part of the
166 Gettext package which the host distribution should provide.</para>
167
[d3a4fc0]168 <para os="dk">Compile the package:</para>
[3f8be484]169
[d3a4fc0]170<screen os="dl"><userinput>make</userinput></screen>
[3f8be484]171
[d3a4fc0]172 <para os="dm">Install the package:</para>
[3f8be484]173
[f5706e7]174<screen os="dn"><userinput>make install</userinput></screen>
[3f8be484]175
176 </sect2>
177
178 <sect2 role="content">
179 <title/>
180
181 <para>Details on this package are located in <xref
[cbbd1e4]182 linkend="contents-glibc" role="."/></para>
[3f8be484]183
184 </sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.