1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-cross-tools-glibc-n32" role="wrap">
|
---|
9 | <?dbhtml filename="glibc-n32.html"?>
|
---|
10 |
|
---|
11 | <title>Glibc-&glibc-version; N32</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-cross-tools-glibc-n32">
|
---|
14 | <primary sortas="a-Glibc">Glibc</primary>
|
---|
15 | <secondary>cross tools, N32</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
19 | href="../../final-system/common/glibc.xml"
|
---|
20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
21 |
|
---|
22 | <sect2 role="installation">
|
---|
23 | <title>Installation of Glibc</title>
|
---|
24 |
|
---|
25 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
26 | href="../multilib/glibc.xml"
|
---|
27 | xpointer="xpointer(//*[@os='da'])"/>
|
---|
28 |
|
---|
29 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
30 | href="../multilib/glibc.xml"
|
---|
31 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
32 |
|
---|
33 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
34 | href="../multilib/glibc.xml"
|
---|
35 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
36 |
|
---|
37 | <para os="n1">Configure Glibc to install its 32-bit libraries into <filename
|
---|
38 | class="directory">/tools/lib32</filename>:</para>
|
---|
39 |
|
---|
40 | <screen os="n2"><userinput>echo "libc_cv_slibdir=/tools/lib32" >> config.cache</userinput></screen>
|
---|
41 |
|
---|
42 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
43 | href="../multilib/glibc.xml"
|
---|
44 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
45 |
|
---|
46 | <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILDN32}" \
|
---|
47 | AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
|
---|
48 | ../glibc-&glibc-version;/configure \
|
---|
49 | --prefix=/tools \
|
---|
50 | --host=${CLFS_TARGET} \
|
---|
51 | --build=${CLFS_HOST} \
|
---|
52 | --libdir=/tools/lib32 \
|
---|
53 | --enable-kernel=&glibc-kernel-version; \
|
---|
54 | --with-binutils=/cross-tools/bin \
|
---|
55 | --with-headers=/tools/include \
|
---|
56 | --enable-obsolete-rpc \
|
---|
57 | --cache-file=config.cache</userinput></screen>
|
---|
58 |
|
---|
59 | <variablelist os="fa">
|
---|
60 | <title>The meaning of the new configure options:</title>
|
---|
61 |
|
---|
62 | <varlistentry os="fa1">
|
---|
63 | <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILDN32}"</parameter></term>
|
---|
64 | <listitem>
|
---|
65 | <para>Forces Glibc to utilize our target architecture GCC utilizing
|
---|
66 | the N32 flags.</para>
|
---|
67 | </listitem>
|
---|
68 | </varlistentry>
|
---|
69 |
|
---|
70 | <varlistentry>
|
---|
71 | <term><parameter>--libdir=/tools/lib32</parameter></term>
|
---|
72 | <listitem>
|
---|
73 | <para>Installs Glibc into /tools/lib32 instead of /tools/lib.</para>
|
---|
74 | </listitem>
|
---|
75 | </varlistentry>
|
---|
76 |
|
---|
77 | </variablelist>
|
---|
78 |
|
---|
79 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
80 | href="../multilib/glibc.xml"
|
---|
81 | xpointer="xpointer(//*[@os='dh'])"/>
|
---|
82 |
|
---|
83 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
84 | href="../multilib/glibc.xml"
|
---|
85 | xpointer="xpointer(//*[@os='di'])"/>
|
---|
86 |
|
---|
87 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
88 | href="../multilib/glibc.xml"
|
---|
89 | xpointer="xpointer(//*[@os='dj'])"/>
|
---|
90 |
|
---|
91 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
92 | href="../multilib/glibc.xml"
|
---|
93 | xpointer="xpointer(//*[@os='dk'])"/>
|
---|
94 |
|
---|
95 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
96 | href="../multilib/glibc.xml"
|
---|
97 | xpointer="xpointer(//*[@os='dl'])"/>
|
---|
98 |
|
---|
99 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
100 | href="../multilib/glibc.xml"
|
---|
101 | xpointer="xpointer(//*[@os='dm'])"/>
|
---|
102 |
|
---|
103 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
104 | href="../multilib/glibc.xml"
|
---|
105 | xpointer="xpointer(//*[@os='dn'])"/>
|
---|
106 |
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="content">
|
---|
110 | <title/>
|
---|
111 |
|
---|
112 | <para>Details on this package are located in <xref
|
---|
113 | linkend="contents-glibc" role="."/></para>
|
---|
114 |
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | </sect1>
|
---|