source: clfs-sysroot/BOOK/cross-tools/common/gcc-static.xml@ 1f0a9c9

Last change on this file since 1f0a9c9 was 8e23f7c, checked in by Jim Gifford <clfs@…>, 18 years ago

r3661@server (orig r1663): jciccone | 2006-05-26 13:36:55 -0700
Added file to cross-tools and fixed the xml for gcc.

  • Property mode set to 100644
File size: 3.4 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 %general-entities;
6]>
7
8<sect1 id="ch-cross-tools-gcc-static" role="wrap">
9 <?dbhtml filename="gcc-static.html"?>
10
11 <title>Cross GCC-&gcc-version; - Static</title>
12
13 <indexterm zone="ch-cross-tools-gcc-static">
14 <primary sortas="a-GCC">GCC</primary>
15 <secondary>cross tools, static</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/gcc.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Cross GCC Compiler with Static libgcc
24 and no Threads</title>
25
26 <para os="aa">To make sure that a couple of tools use the proper syntax,
27 apply the following patch:</para>
28
29<screen os="ab"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
30
31 <para os="ac">The following patch ensures that <command>gcc</command> does not
32 search the <filename class="directory">/usr</filename> directory for
33 <filename class="libraryfile">libgcc_s.so</filename> when
34 cross-compiling:</para>
35
36<screen os="ad"><userinput>patch -Np1 -i ../&gcc-cross_search-patch;</userinput></screen>
37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="../../final-system/common/gcc.xml"
40 xpointer="xpointer(//*[@os='c'])"/>
41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="../../final-system/common/gcc.xml"
44 xpointer="xpointer(//*[@os='d'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="../../final-system/common/gcc.xml"
48 xpointer="xpointer(//*[@os='e'])"/>
49
50<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \
51 --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
52 --with-sysroot=${LFS} --disable-nls --disable-shared \
53 --disable-threads --enable-languages=c</userinput></screen>
54
55 <variablelist os="af">
56 <title>The meaning of the configure options:</title>
57
58 <varlistentry>
59 <term><parameter>--disable-shared</parameter></term>
60 <listitem>
61 <para>Disables the creation of the shared libraries.</para>
62 </listitem>
63 </varlistentry>
64
65 <varlistentry>
66 <term><parameter>--disable-threads</parameter></term>
67 <listitem>
68 <para>This will prevent GCC from looking for the multi-thread
69 include files, since they haven't been created for this architecture
70 yet. GCC will be able to find the multi-thread information after
71 the Glibc headers are created.</para>
72 </listitem>
73 </varlistentry>
74
75 <varlistentry>
76 <term><parameter>--enable-languages=c</parameter></term>
77 <listitem>
78 <para>This option ensures that only the C compiler is built.</para>
79 </listitem>
80 </varlistentry>
81
82 </variablelist>
83
84 <para os="ag">Continue with compiling the package:</para>
85
86<screen os="ah"><userinput>make all-gcc</userinput></screen>
87
88 <para os="ai">Install the package:</para>
89
90<screen os="aj"><userinput>make install-gcc</userinput></screen>
91
92 </sect2>
93
94 <sect2 role="content">
95 <title/>
96
97 <para>Details on this package are located in <xref
98 linkend="contents-gcc" role="."/></para>
99
100 </sect2>
101
102</sect1>
Note: See TracBrowser for help on using the repository browser.