source: clfs-embedded/BOOK/cross-tools/arm/gcc-static.xml@ b057d7e2

Last change on this file since b057d7e2 was 146587b, checked in by Andrew Bradford <andrew@…>, 11 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: 4.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<!-- ARM 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_ARM_ARCH} \
68 --with-mode=${CLFS_ARM_MODE} \
69 --with-float=${CLFS_FLOAT} \
70 --with-fpu=${CLFS_FPU}</userinput></screen>
71
72<!-- Common configure switches for all archs -->
73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
74 href="../common/gcc-static.xml"
75 xpointer="xpointer(//*[@os='af'])"/>
76
77<!-- Specific configure switches for ARM -->
78 <variablelist os="ag">
79
80 <varlistentry os="ag1">
81 <term><parameter>--with-abi=${CLFS_ABI}</parameter></term>
82 <listitem>
83 <para>This option sets the ABI selected earlier.</para>
84 </listitem>
85 </varlistentry>
86 <varlistentry os="ag2">
87 <term><parameter>--with-arch=${CLFS_ARM_ARCH}</parameter></term>
88 <listitem>
89 <para>This option sets the ARM architecture selected earlier.</para>
90 </listitem>
91 </varlistentry>
92 <varlistentry os="ag3">
93 <term><parameter>--with-mode=${CLFS_ARM_MODE}</parameter></term>
94 <listitem>
95 <para>This option sets the ARM mode (arm or thumb) selected earlier.</para>
96 </listitem>
97 </varlistentry>
98 <varlistentry os="ag4">
99 <term><parameter>--with-float=${CLFS_FLOAT}</parameter></term>
100 <listitem>
101 <para>This option sets the floating point mode selected earlier.</para>
102 </listitem>
103 </varlistentry>
104 <varlistentry os="ag5">
105 <term><parameter>--with-fpu=${CLFS_FPU}</parameter></term>
106 <listitem>
107 <para>This option sets the hardware floating point type selected
108 earlier. If soft floating point was selected, this value is ignored.</para>
109 </listitem>
110 </varlistentry>
111
112 </variablelist>
113
114 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
115 href="../common/gcc-static.xml"
116 xpointer="xpointer(//*[@os='ah'])"/>
117
118 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
119 href="../common/gcc-static.xml"
120 xpointer="xpointer(//*[@os='ai'])"/>
121
122 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
123 href="../common/gcc-static.xml"
124 xpointer="xpointer(//*[@os='aj'])"/>
125
126 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
127 href="../common/gcc-static.xml"
128 xpointer="xpointer(//*[@os='ak'])"/>
129
130 </sect2>
131
132 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
133 href="../common/gcc-static.xml"
134 xpointer="xpointer(//*[@role='content'])"/>
135
136</sect1>
Note: See TracBrowser for help on using the repository browser.