source: clfs-embedded/BOOK/cross-tools/x86/gcc-static.xml @ 8a77fbd

Last change on this file since 8a77fbd was 8a77fbd, checked in by Andrew Bradford <andrew@…>, 11 years ago

gcc-static: Do mpfr, gmp, and mpc, too

Remove MPFR, GMP, and MPC steps. Place each into GCC static build
directory as that's an alternate method and reduces the number of steps.

  • 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>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
51  ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
52  --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
53  --with-sysroot=${CLFS} --disable-nls  --disable-shared \
54  --without-headers --with-newlib \
55  --disable-decimal-float --disable-libgomp --disable-libmudflap \
56  --disable-libssp --disable-threads --enable-languages=c \
57  --disable-multilib --with-arch=${CLFS_CPU}</userinput></screen>
58
59<!-- Common configure switches for all archs -->
60  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
61  href="../common/gcc-static.xml"
62  xpointer="xpointer(//*[@os='af'])"/>
63
64<!-- Specific configure switches for x86 -->
65  <variablelist os="ag">
66
67    <varlistentry os="ag1">
68      <term><parameter>--with-arch=${CLFS_CPU}</parameter></term>
69      <listitem>
70        <para>This option configures the cross compiler to only output
71        instructions for our previously selected CPU.</para>
72      </listitem>
73    </varlistentry>
74
75  </variablelist>
76
77  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
78  href="../common/gcc-static.xml"
79  xpointer="xpointer(//*[@os='ah'])"/>
80
81  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
82  href="../common/gcc-static.xml"
83  xpointer="xpointer(//*[@os='ai'])"/>
84
85  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
86  href="../common/gcc-static.xml"
87  xpointer="xpointer(//*[@os='aj'])"/>
88
89  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
90  href="../common/gcc-static.xml"
91  xpointer="xpointer(//*[@os='ak'])"/>
92
93  </sect2>
94
95  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
96  href="../common/gcc-static.xml"
97  xpointer="xpointer(//*[@role='content'])"/>
98
99</sect1>
Note: See TracBrowser for help on using the repository browser.