source: clfs-sysroot/BOOK/cross-tools/common/gcc-static.xml@ 591ec78

Last change on this file since 591ec78 was c439b8a, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated CLFS-Sysroot book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 3.4 KB
RevLine 
[02095ae]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c439b8a]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[02095ae]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
[7126617]26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
27 href="../../final-system/common/gcc.xml"
28 xpointer="xpointer(//*[@os='p1'])"/>
[02095ae]29
[7126617]30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31 href="../../final-system/common/gcc.xml"
32 xpointer="xpointer(//*[@os='p2'])"/>
[02095ae]33
34 <para os="ac">The following patch ensures that <command>gcc</command> does not
35 search the <filename class="directory">/usr</filename> directory for
36 <filename class="libraryfile">libgcc_s.so</filename> when
37 cross-compiling:</para>
38
39<screen os="ad"><userinput>patch -Np1 -i ../&gcc-cross_search-patch;</userinput></screen>
40
41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="../../final-system/common/gcc.xml"
[8e23f7c]43 xpointer="xpointer(//*[@os='c'])"/>
[02095ae]44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../../final-system/common/gcc.xml"
[8e23f7c]47 xpointer="xpointer(//*[@os='d'])"/>
[02095ae]48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../../final-system/common/gcc.xml"
[8e23f7c]51 xpointer="xpointer(//*[@os='e'])"/>
[02095ae]52
[586feb7]53<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
54 --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
55 --with-sysroot=${CLFS} --disable-nls --disable-shared \
[f6c417f]56 --enable-languages=c</userinput></screen>
[02095ae]57
58 <variablelist os="af">
59 <title>The meaning of the configure options:</title>
60
61 <varlistentry>
62 <term><parameter>--disable-shared</parameter></term>
63 <listitem>
64 <para>Disables the creation of the shared libraries.</para>
65 </listitem>
66 </varlistentry>
67
68 <varlistentry>
69 <term><parameter>--disable-threads</parameter></term>
70 <listitem>
71 <para>This will prevent GCC from looking for the multi-thread
72 include files, since they haven't been created for this architecture
73 yet. GCC will be able to find the multi-thread information after
74 the Glibc headers are created.</para>
75 </listitem>
76 </varlistentry>
77
78 <varlistentry>
79 <term><parameter>--enable-languages=c</parameter></term>
80 <listitem>
81 <para>This option ensures that only the C compiler is built.</para>
82 </listitem>
83 </varlistentry>
84
85 </variablelist>
86
87 <para os="ag">Continue with compiling the package:</para>
88
89<screen os="ah"><userinput>make all-gcc</userinput></screen>
90
91 <para os="ai">Install the package:</para>
92
93<screen os="aj"><userinput>make install-gcc</userinput></screen>
94
95 </sect2>
96
97 <sect2 role="content">
98 <title/>
99
100 <para>Details on this package are located in <xref
101 linkend="contents-gcc" role="."/></para>
102
103 </sect2>
104
105</sect1>
Note: See TracBrowser for help on using the repository browser.