Changeset 677aef3 for chapter06/gcc-2953-inst.xml
- Timestamp:
- 09/22/2003 02:25:37 PM (21 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- f4231a2
- Parents:
- 3aa9774
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc-2953-inst.xml
r3aa9774 r677aef3 17 17 developer's advice and using the version here to compile your kernel.</para> 18 18 19 <note><para>We don't install the C++ compiler or libraries here. However, there 20 may be reasons why you would want to install them. More information can be found 21 at <ulink url="&blfs-root;view/cvs/general/gcc2.html"/>.</para></note> 22 19 23 <para>We'll install this older release of GCC into the non-standard prefix of 20 24 <filename class="directory">/opt</filename> so as to avoid interfering with … … 22 26 .</para> 23 27 24 <para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patch 25 patch -Np1 -i ../gcc-2.95.3-returntype-fix.patch 26 echo timestamp > gcc/cstamp-h.in 27 mkdir ../gcc-2-build 28 cd ../gcc-2-build 29 ../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \ 28 <para>Apply the patches and make a small adjustment:</para> 29 30 <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-2953-patch-version;.patch 31 patch -Np1 -i ../gcc-&gcc-2953-no-fixinc-patch-version;-no-fixinc.patch 32 patch -Np1 -i ../gcc-&gcc-2953-returntype-fix-patch-version;-returntype-fix.patch 33 echo timestamp > gcc/cstamp-h.in</userinput></screen></para> 34 35 <para>The GCC documentation recommends building GCC outside of the source 36 directory in a dedicated build directory:</para> 37 38 <para><screen><userinput>mkdir ../gcc-2-build 39 cd ../gcc-2-build</userinput></screen></para> 40 41 <para>Compile and install gcc:</para> 42 43 <para><screen><userinput>../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \ 30 44 --enable-shared --enable-languages=c \ 31 45 --enable-threads=posix
Note:
See TracChangeset
for help on using the changeset viewer.