source: clfs-embedded/BOOK/cross-tools/x86/gcc-static.xml @ 146587b

Last change on this file since 146587b was 146587b, checked in by Andrew Bradford <andrew@…>, 10 years ago

gcc: Remove AR=ar and LDFLAGS from gcc builds

They aren't needed with gmp, mpfr, and mpc in tree and there are no host
libs built for embedded.

  • Property mode set to 100644
File size: 3.2 KB
Line 
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<!-- x86 GCC-Static -->
9
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
20  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21  href="../common/gcc-static.xml"
22  xpointer="xpointer(//*[@role='package'])"/>
23
24  <sect2 role="installation">
25
26  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
27  href="../common/gcc-static.xml"
28  xpointer="xpointer(//*[@os='a'])"/>
29
30  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31  href="../common/gcc-static.xml"
32  xpointer="xpointer(//*[@os='b'])"/>
33
34  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35  href="../common/gcc-static.xml"
36  xpointer="xpointer(//*[@os='ba'])"/>
37
38  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39  href="../common/gcc-static.xml"
40  xpointer="xpointer(//*[@os='c'])"/>
41
42  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43  href="../common/gcc-static.xml"
44  xpointer="xpointer(//*[@os='d'])"/>
45
46  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47  href="../common/gcc-static.xml"
48  xpointer="xpointer(//*[@os='e'])"/>
49
50<screen os="ae"><userinput>../gcc-&gcc-version;/configure \
51  --prefix=${CLFS}/cross-tools \
52  --build=${CLFS_HOST} \
53  --host=${CLFS_HOST} \
54  --target=${CLFS_TARGET} \
55  --with-sysroot=${CLFS} \
56  --disable-nls  \
57  --disable-shared \
58  --without-headers \
59  --with-newlib \
60  --disable-decimal-float \
61  --disable-libgomp \
62  --disable-libmudflap \
63  --disable-libssp \
64  --disable-threads \
65  --enable-languages=c \
66  --disable-multilib \
67  --with-arch=${CLFS_CPU}</userinput></screen>
68
69<!-- Common configure switches for all archs -->
70  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
71  href="../common/gcc-static.xml"
72  xpointer="xpointer(//*[@os='af'])"/>
73
74<!-- Specific configure switches for x86 -->
75  <variablelist os="ag">
76
77    <varlistentry os="ag1">
78      <term><parameter>--with-arch=${CLFS_CPU}</parameter></term>
79      <listitem>
80        <para>This option configures the cross compiler to only output
81        instructions for our previously selected CPU.</para>
82      </listitem>
83    </varlistentry>
84
85  </variablelist>
86
87  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88  href="../common/gcc-static.xml"
89  xpointer="xpointer(//*[@os='ah'])"/>
90
91  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
92  href="../common/gcc-static.xml"
93  xpointer="xpointer(//*[@os='ai'])"/>
94
95  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
96  href="../common/gcc-static.xml"
97  xpointer="xpointer(//*[@os='aj'])"/>
98
99  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
100  href="../common/gcc-static.xml"
101  xpointer="xpointer(//*[@os='ak'])"/>
102
103  </sect2>
104
105  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
106  href="../common/gcc-static.xml"
107  xpointer="xpointer(//*[@role='content'])"/>
108
109</sect1>
Note: See TracBrowser for help on using the repository browser.