source: BOOK/cross-tools/common/eglibc.xml@ 3f28c65

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3f28c65 was bd01f75, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Fixed a typo in cross-tools EGlibc. was gnu99 instead of gnu89.

  • 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
[093b0e8]8<sect1 id="ch-cross-tools-eglibc" role="wrap">
9 <?dbhtml filename="eglibc.html"?>
[3f8be484]10
[093b0e8]11 <title>EGLIBC-&eglibc-version;</title>
[3f8be484]12
[093b0e8]13 <indexterm zone="ch-cross-tools-eglibc">
14 <primary sortas="a-EGLIBC">EGLIBC</primary>
[3f8be484]15 <secondary>cross tools</secondary>
16 </indexterm>
17
[cf66ceae]18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[093b0e8]19 href="../../final-system/common/eglibc.xml"
[cf66ceae]20 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]21
22 <sect2 role="installation">
[093b0e8]23 <title>Installation of EGLIBC</title>
[3f8be484]24
[093b0e8]25 <para os="da">It should be noted that compiling EGLIBC in any way other than
[3f8be484]26 the method suggested in this book puts the stability of the system at
27 risk.</para>
28
[6d4c909]29 <para os="db">Disable linking to <filename>libgcc_eh</filename>:</para>
[3f8be484]30
[093b0e8]31<screen os="dc"><userinput>cp -v Makeconfig{,.orig}
32sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig</userinput></screen>
[3f8be484]33
34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[093b0e8]35 href="../../final-system/common/eglibc.xml"
[3f8be484]36 xpointer="xpointer(//*[@os='e'])"/>
37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[093b0e8]39 href="../../final-system/common/eglibc.xml"
[3f8be484]40 xpointer="xpointer(//*[@os='f'])"/>
41
[0220731]42 <para os="dd">The following lines need to be added to
[093b0e8]43 <filename>config.cache</filename> for EGLIBC to support NPTL:</para>
[3f8be484]44
[c768003]45<screen os="de"><userinput>cat &gt; config.cache &lt;&lt; "EOF"
[5a5e71f]46libc_cv_forced_unwind=yes
47libc_cv_c_cleanup=yes
[bd01f75]48libc_cv_gnu89_inline=yes
[5a5e71f]49EOF</userinput></screen>
[3f8be484]50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[093b0e8]52 href="../../final-system/common/eglibc.xml"
[3f8be484]53 xpointer="xpointer(//*[@os='g'])"/>
54
[07114c98]55<screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
56 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
[093b0e8]57 ../eglibc-&eglibc-version;/configure --prefix=/tools \
[07114c98]58 --host=${CLFS_TARGET} --build=${CLFS_HOST} \
[3f8be484]59 --disable-profile --enable-add-ons \
60 --with-tls --enable-kernel=2.6.0 --with-__thread \
[bc2e3fa]61 --with-binutils=/cross-tools/bin --with-headers=/tools/include \
[3f8be484]62 --cache-file=config.cache</userinput></screen>
63
[d3a4fc0]64 <variablelist os="dg">
[3f8be484]65 <title>The meaning of the new configure options:</title>
66
[d3a4fc0]67 <varlistentry os="dg1">
[3f8be484]68 <term><parameter>BUILD_CC="gcc"</parameter></term>
69 <listitem>
[093b0e8]70 <para>This sets EGLIBC to use the current compiler on our system. This is
71 used to create the tools EGLIBC uses during its build.</para>
[3f8be484]72 </listitem>
73 </varlistentry>
74
[d3a4fc0]75 <varlistentry os="dg2">
[07114c98]76 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
[3f8be484]77 <listitem>
[093b0e8]78 <para>This forces EGLIBC to use the GCC compiler that we made for our target
[d3a4fc0]79 architecture.</para>
[3f8be484]80 </listitem>
81 </varlistentry>
82
[d3a4fc0]83 <varlistentry os="dg3">
[07114c98]84 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
[3f8be484]85 <listitem>
[093b0e8]86 <para>This forces EGLIBC to use the <command>ar</command> utility
[df709be]87 we made for our target architecture.</para>
[3f8be484]88 </listitem>
89 </varlistentry>
90
[d3a4fc0]91 <varlistentry os="dg4">
[07114c98]92 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
[3f8be484]93 <listitem>
[093b0e8]94 <para>This forces EGLIBC to use the <command>ranlib</command> utility
[df709be]95 we made for our target architecture.</para>
[3f8be484]96 </listitem>
97 </varlistentry>
98
[d3a4fc0]99 <varlistentry os="dg5">
[3f8be484]100 <term><parameter>--disable-profile</parameter></term>
101 <listitem>
[d3a4fc0]102 <para>This builds the libraries without profiling information.
[e3196bd]103 Omit this option if profiling on the temporary tools is necessary.</para>
[3f8be484]104 </listitem>
105 </varlistentry>
106
[d3a4fc0]107 <varlistentry os="dg6">
[3f8be484]108 <term><parameter>--enable-add-ons</parameter></term>
109 <listitem>
[093b0e8]110 <para>This tells EGLIBC to utilize all add-ons that are
[e9e2255]111 available.</para>
[3f8be484]112 </listitem>
113 </varlistentry>
114
[d3a4fc0]115 <varlistentry os="dg7">
[3f8be484]116 <term><parameter>--with-tls</parameter></term>
117 <listitem>
[093b0e8]118 <para>This tells EGLIBC to use Thread Local Storage.</para>
[3f8be484]119 </listitem>
120 </varlistentry>
121
[d3a4fc0]122 <varlistentry os="dg8">
[c814e64]123 <term><parameter>--enable-kernel=2.6.0</parameter></term>
124 <listitem>
[093b0e8]125 <para>This tells EGLIBC to compile the library with support
[c814e64]126 for 2.6.x Linux kernels.</para>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry os="dg9">
[3f8be484]131 <term><parameter>--with-__thread</parameter></term>
132 <listitem>
[093b0e8]133 <para>This tells EGLIBC to use use the __thread for libc and
[d3a4fc0]134 libpthread builds.</para>
[3f8be484]135 </listitem>
136 </varlistentry>
137
[c814e64]138 <varlistentry os="dg10">
[bc2e3fa]139 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
[3f8be484]140 <listitem>
[093b0e8]141 <para>This tells EGLIBC to use the Binutils that are specific to
[d3a4fc0]142 our target architecture.</para>
[3f8be484]143 </listitem>
144 </varlistentry>
145
[c814e64]146 <varlistentry os="dg11">
147 <term><parameter>--with-headers=/tools/include</parameter></term>
148 <listitem>
[093b0e8]149 <para>This tells EGLIBC to compile itself against the headers
[c814e64]150 recently installed to the <filename class="directory">/tools</filename>
151 directory, so that it knows exactly what features the kernel has
152 and can optimize itself accordingly.</para>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry os="dg12">
[3f8be484]157 <term><parameter>--cache-file=config.cache</parameter></term>
158 <listitem>
[093b0e8]159 <para>This tells EGLIBC to utilize a premade cache file.</para>
[3f8be484]160 </listitem>
161 </varlistentry>
162
163 </variablelist>
164
[d3a4fc0]165 <para os="dh">During this stage the following warning might appear:</para>
[3f8be484]166
[d3a4fc0]167<blockquote os="di"><screen><computeroutput>configure: WARNING:
[3f8be484]168*** These auxiliary programs are missing or
169*** incompatible versions: msgfmt
170*** some features will be disabled.
171*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
172
[d3a4fc0]173 <para os="dj">The missing or incompatible <command>msgfmt</command> program is
[3f8be484]174 generally harmless. This <command>msgfmt</command> program is part of the
175 Gettext package which the host distribution should provide.</para>
176
[d3a4fc0]177 <para os="dk">Compile the package:</para>
[3f8be484]178
[d3a4fc0]179<screen os="dl"><userinput>make</userinput></screen>
[3f8be484]180
[d3a4fc0]181 <para os="dm">Install the package:</para>
[3f8be484]182
[d3a4fc0]183<screen os="dn"><userinput>make install</userinput></screen>
[3f8be484]184
185 </sect2>
186
187 <sect2 role="content">
188 <title/>
189
190 <para>Details on this package are located in <xref
[093b0e8]191 linkend="contents-eglibc" role="."/></para>
[3f8be484]192
193 </sect2>
194
195</sect1>
Note: See TracBrowser for help on using the repository browser.