aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gcc-pass2-inst.xml
blob: ed1522c0c512e9ba51355a5ef765b5ed9a438750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of GCC</title>

<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-3.2.3.patch
patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch
patch -Np1 -i ../gcc-&gcc-version;-no_fixedincludes.patch
patch -Np1 -i ../gcc-&gcc-version;-libstdc++_no_debug.patch
patch -Np1 -i ../gcc-&gcc-version;-libgcc_no_debug.patch </userinput></screen></para>

<para><screen><userinput>mkdir ../gcc-build
cd ../gcc-build</userinput></screen></para>

<para><screen><userinput>CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \
&nbsp;&nbsp;&nbsp;&nbsp;../gcc-&gcc-version;/configure --prefix=/stage1 \
&nbsp;&nbsp;&nbsp;&nbsp;--with-local-prefix=/stage1 \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-shared \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix --enable-__cxa_atexit \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-version-specific-runtime-libs
make BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 -pipe" \
&nbsp;&nbsp;&nbsp;&nbsp;STAGE1_CFLAGS="-pipe" bootstrap
make -k check
make install</userinput></screen></para>

</sect2>