source: clfs-sysroot/BOOK/cross-tools/common/gcc-static.xml@ 8e6a7d4

Last change on this file since 8e6a7d4 was 9db6797, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Remove the posix patches from GCC and Binutils.

  • Property mode set to 100644
File size: 3.5 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
[7329dbe]26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
27 href="../../final-system/common/gcc.xml"
28 xpointer="xpointer(//*[@os='p3'])"/>
29
30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31 href="../../final-system/common/gcc.xml"
32 xpointer="xpointer(//*[@os='p4'])"/>
33
[02095ae]34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35 href="../../final-system/common/gcc.xml"
[8e23f7c]36 xpointer="xpointer(//*[@os='c'])"/>
[02095ae]37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="../../final-system/common/gcc.xml"
[8e23f7c]40 xpointer="xpointer(//*[@os='d'])"/>
[02095ae]41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="../../final-system/common/gcc.xml"
[8e23f7c]44 xpointer="xpointer(//*[@os='e'])"/>
[02095ae]45
[ab1184b]46<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
47 ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
[efb33c9]48 --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
49 --disable-multilib --with-sysroot=${CLFS} --disable-nls \
50 --without-headers --with-newlib --disable-decimal-float \
51 --disable-libgomp --disable-libmudflap --disable-libssp \
[ab1184b]52 --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
[cf44b18]53 --with-ppl=${CLFS}/cross-tools --with-cloog=${CLFS}/cross-tools \
[efb33c9]54 --disable-shared --disable-threads --enable-languages=c</userinput></screen>
[02095ae]55
56 <variablelist os="af">
57 <title>The meaning of the configure options:</title>
58
59 <varlistentry>
60 <term><parameter>--disable-shared</parameter></term>
61 <listitem>
62 <para>Disables the creation of the shared libraries.</para>
63 </listitem>
64 </varlistentry>
65
66 <varlistentry>
67 <term><parameter>--disable-threads</parameter></term>
68 <listitem>
69 <para>This will prevent GCC from looking for the multi-thread
70 include files, since they haven't been created for this architecture
71 yet. GCC will be able to find the multi-thread information after
[fef8487]72 the EGLIBC headers are created.</para>
[02095ae]73 </listitem>
74 </varlistentry>
75
76 <varlistentry>
77 <term><parameter>--enable-languages=c</parameter></term>
78 <listitem>
79 <para>This option ensures that only the C compiler is built.</para>
80 </listitem>
81 </varlistentry>
82
83 </variablelist>
84
85 <para os="ag">Continue with compiling the package:</para>
86
[312a670]87<screen os="ah"><userinput>make all-gcc all-target-libgcc</userinput></screen>
[02095ae]88
89 <para os="ai">Install the package:</para>
90
[312a670]91<screen os="aj"><userinput>make install-gcc install-target-libgcc</userinput></screen>
[02095ae]92
93 </sect2>
94
95 <sect2 role="content">
96 <title/>
97
98 <para>Details on this package are located in <xref
99 linkend="contents-gcc" role="."/></para>
100
101 </sect2>
102
103</sect1>
Note: See TracBrowser for help on using the repository browser.