source: BOOK/cross-tools/sparc/glibc.xml @ cf66ceae

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since cf66ceae was cf66ceae, checked in by Jim Gifford <clfs@…>, 18 years ago

r656@server (orig r654): manuel | 2005-11-08 12:18:58 -0800
Preparations to remove SBUs and DUs. Chapter cross-tools.

  • Property mode set to 100644
File size: 5.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6  %general-entities;
7  %patches-entities;
8]>
9
10<sect1 id="ch-cross-tools-glibc" role="wrap">
11  <?dbhtml filename="glibc.html"?>
12
13  <title>Glibc-&glibc-version;</title>
14
15  <indexterm zone="ch-cross-tools-glibc">
16    <primary sortas="a-Glibc">Glibc</primary>
17    <secondary>cross tools</secondary>
18  </indexterm>
19
20  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21  href="../../final-system/common/glibc.xml"
22  xpointer="xpointer(//*[@role='package'])"/>
23
24  <sect2 role="installation">
25    <title>Installation of Glibc</title>
26
27    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
28    href="../common/glibc.xml"
29    xpointer="xpointer(//*[@os='da'])"/>
30
31    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32    href="../common/glibc.xml"
33    xpointer="xpointer(//*[@os='db'])"/>
34
35    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36    href="../common/glibc.xml"
37    xpointer="xpointer(//*[@os='dc'])"/>
38
39    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
40    href="../../final-system/sparc/glibc.xml"
41    xpointer="xpointer(//*[@os='s1'])"/>
42
43    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
44    href="../../final-system/sparc/glibc.xml"
45    xpointer="xpointer(//*[@os='s2'])"/>
46
47    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
48    href="../common/glibc.xml"
49    xpointer="xpointer(//*[@os='c'])"/>
50
51    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52    href="../common/glibc.xml"
53    xpointer="xpointer(//*[@os='d'])"/>
54
55    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
56    href="../common/glibc.xml"
57    xpointer="xpointer(//*[@os='e'])"/>
58
59    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
60    href="../common/glibc.xml"
61    xpointer="xpointer(//*[@os='f'])"/>
62
63    <para os="dd"> For NPTL enabled systems we will need to add the following lines to
64    <filename>config.cache</filename>:</para>
65
66<screen os="de"><userinput>echo "libc_cv_forced_unwind=yes" &gt; config.cache
67echo "libc_cv_c_cleanup=yes" &gt;&gt; config.cache</userinput></screen>
68
69    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
70    href="../../final-system/common/glibc.xml"
71    xpointer="xpointer(//*[@os='g'])"/>
72
73<screen><userinput>BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
74    AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
75    ../glibc-&glibc-version;/configure --prefix=/tools \
76    --host=${LFS_TARGET} --build=${LFS_HOST} \
77    --disable-profile --enable-add-ons \
78    --with-tls --enable-kernel=2.6.0 --with-__thread \
79    --with-binutils=/cross-tools/bin --with-headers=/tools/include \
80    --cache-file=config.cache</userinput></screen>
81
82    <variablelist os="di">
83      <title>The meaning of the new configure options:</title>
84
85      <varlistentry os="di1">
86        <term><parameter>BUILD_CC="gcc"</parameter></term>
87        <listitem>
88          <para>This do ...</para>
89        </listitem>
90      </varlistentry>
91
92      <varlistentry os="di2">
93        <term><parameter>CC="${LFS_TARGET}-gcc"</parameter></term>
94        <listitem>
95          <para>This do ...</para>
96        </listitem>
97      </varlistentry>
98
99      <varlistentry os="di3">
100        <term><parameter>AR="${LFS_TARGET}-ar"</parameter></term>
101        <listitem>
102          <para>This do ...</para>
103        </listitem>
104      </varlistentry>
105
106      <varlistentry os="di4">
107        <term><parameter>RANLIB="${LFS_TARGET}-ranlib"</parameter></term>
108        <listitem>
109          <para>This do ...</para>
110        </listitem>
111      </varlistentry>
112
113      <varlistentry os="di5">
114        <term><parameter>--disable-profile</parameter></term>
115        <listitem>
116          <para>This do ...</para>
117        </listitem>
118      </varlistentry>
119
120      <varlistentry os="di6">
121        <term><parameter>--enable-add-ons</parameter></term>
122        <listitem>
123          <para>This do ...</para>
124        </listitem>
125      </varlistentry>
126
127      <varlistentry os="di7">
128        <term><parameter>--with-tls</parameter></term>
129        <listitem>
130          <para>This do ...</para>
131        </listitem>
132      </varlistentry>
133
134      <varlistentry os="di8">
135        <term><parameter>--with-__thread</parameter></term>
136        <listitem>
137          <para>This do ...</para>
138        </listitem>
139      </varlistentry>
140
141      <varlistentry os="di9">
142        <term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
143        <listitem>
144          <para>This do ...</para>
145        </listitem>
146      </varlistentry>
147
148      <varlistentry os="di10">
149        <term><parameter>--cache-file=config.cache</parameter></term>
150        <listitem>
151          <para>This do ...</para>
152        </listitem>
153      </varlistentry>
154
155    </variablelist>
156
157    <para os="df">During this stage the following warning might appear:</para>
158
159<blockquote os="dg"><screen><computeroutput>configure: WARNING:
160*** These auxiliary programs are missing or
161*** incompatible versions: msgfmt
162*** some features will be disabled.
163*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
164
165    <para os="dh">The missing or incompatible <command>msgfmt</command> program is
166    generally harmless. This <command>msgfmt</command> program is part of the
167    Gettext package which the host distribution should provide.</para>
168
169    <para os="dj">Compile the package:</para>
170
171<screen os="dk"><userinput>make</userinput></screen>
172
173    <para os="dl">Install the package:</para>
174
175<screen os="dm"><userinput>make install</userinput></screen>
176
177  </sect2>
178
179  <sect2 role="content">
180    <title/>
181
182    <para>Details on this package are located in <xref
183    linkend="contents-glibc" role="."/></para>
184
185  </sect2>
186
187</sect1>
Note: See TracBrowser for help on using the repository browser.