source: clfs-embedded/BOOK/cross-tools/x86/gcc-static.xml@ 885ee0e

Last change on this file since 885ee0e was ae51e2a, checked in by Andrew Bradford <bradfa@…>, 14 years ago

Created MIPS and ARM GCC-Static files & cleanup

x86 no longer is common with MIPS and ARM for GCC-Static, so it has
its own GCC-Static file. In the previous implementation, there
was a lot of duplication between the common and x86 GCC-Static files.
This removes the duplication by better referencing the common file
and also creates MIPS and ARM specific GCC-Static files.

In this way, everything that is common to all architectures goes into
the common file and each architecture's GCC-Static file is specific
to the architecture.

* PLEASE NOTE *: As of this commit, GCC-Final is BROKEN for x86!
It will be fixed shortly.
DO NOT MERGE THIS UNTIL GCC-FINAL IS FIXED FOR x86!

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[b7f5467]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
[ae51e2a]8<!-- x86 GCC-Static -->
9
[b7f5467]10<sect1 id="ch-cross-tools-gcc-static" role="wrap">
11 <?dbhtml filename="gcc-static.html"?>
12
13 <title>Cross GCC-&gcc-version; - Static</title>
14
15 <indexterm zone="ch-cross-tools-gcc-static">
16 <primary sortas="a-GCC">GCC</primary>
17 <secondary>cross tools, static</secondary>
18 </indexterm>
19
[ae51e2a]20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../common/gcc-static.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
[b7f5467]23
24 <sect2 role="installation">
[ae51e2a]25
26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
27 href="../common/gcc-static.xml"
28 xpointer="xpointer(//*[@os='a'])"/>
[b7f5467]29
30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31 href="../common/gcc-static.xml"
32 xpointer="xpointer(//*[@os='c'])"/>
33
34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35 href="../common/gcc-static.xml"
36 xpointer="xpointer(//*[@os='d'])"/>
37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="../common/gcc-static.xml"
40 xpointer="xpointer(//*[@os='e'])"/>
41
42<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
43 ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
44 --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
45 --with-sysroot=${CLFS} --disable-nls --disable-shared \
46 --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
47 --with-mpc=${CLFS}/cross-tools --without-headers --with-newlib \
48 --disable-decimal-float --disable-libgomp --disable-libmudflap \
49 --disable-libssp --disable-threads --enable-languages=c \
[1fd00ea]50 --with-arch=${CLFS_CPU} --disable-multilib</userinput></screen>
[b7f5467]51
[ae51e2a]52<!-- Common configure switches for all archs -->
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="../common/gcc-static.xml"
55 xpointer="xpointer(//*[@os='af'])"/>
[b7f5467]56
[ae51e2a]57<!-- Specific configure switches for x86 -->
58 <variablelist os="ag">
[b7f5467]59
[ae51e2a]60 <varlistentry os="ag1">
61 <term><parameter>--with-arch=${CLFS_CPU}</parameter></term>
62 <listitem>
63 <para>This option configures the cross compiler to only output
64 instructions for our previously selected CPU.</para>
65 </listitem>
66 </varlistentry>
[b7f5467]67
[ae51e2a]68 <varlistentry os="ag2">
69 <term><parameter>--disable-multilib</parameter></term>
70 <listitem>
71 <para>This option specifies that multiple target libraries should
72 not be built.</para>
73 </listitem>
74 </varlistentry>
[1fd00ea]75
[ae51e2a]76 </variablelist>
[b7f5467]77
78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
79 href="../common/gcc-static.xml"
80 xpointer="xpointer(//*[@os='ah'])"/>
81
82 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
83 href="../common/gcc-static.xml"
84 xpointer="xpointer(//*[@os='ai'])"/>
85
86 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87 href="../common/gcc-static.xml"
88 xpointer="xpointer(//*[@os='aj'])"/>
89
[ae51e2a]90 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
91 href="../common/gcc-static.xml"
92 xpointer="xpointer(//*[@os='ak'])"/>
[b7f5467]93
94 </sect2>
95
[ae51e2a]96 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
97 href="../common/gcc-static.xml"
98 xpointer="xpointer(//*[@role='content'])"/>
99
[b7f5467]100</sect1>
Note: See TracBrowser for help on using the repository browser.