- Timestamp:
- 11/21/2003 03:39:20 AM (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, 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_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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- d081b3e
- Parents:
- bcd0ce7
- Location:
- chapter06
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc.xml
rbcd0ce7 r37dcf2a 24 24 or modifying them when building GCC.</para> 25 25 26 <para>This time we will build both the C and the C++ compiler, so you'll have 27 to unpack the GCC-core <emphasis>and</emphasis> the GCC-g++ tarball -- they 26 <para>Unpack the GCC-core <emphasis>and</emphasis> the GCC-g++ tarball -- they 28 27 will unfold into the same directory. You should likewise extract the 29 28 GCC-testsuite package. The full GCC package contains even more … … 31 30 <ulink url="&blfs-root;view/stable/general/gcc.html"/>.</para> 32 31 33 < screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch;34 patch -Np1 -i ../&gcc-suppress-libiberty-patch;</userinput></screen>32 <note><para>Be careful <emphasis role="strong">not</emphasis> to apply the GCC 33 Specs patch from Chapter 5 here.</para></note> 35 34 36 <para>The second patch here suppresses the installation of libiberty from GCC, 37 as we will use the one provided by binutils instead. Be careful 38 <emphasis>not</emphasis> to apply the GCC specs patch from Chapter 5 39 here.</para> 35 <para>First apply the No-Fixincludes patch that we also used in the previous 36 chapter:</para> 37 38 <screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch;</userinput></screen> 39 40 <para>Now apply a sed substitution that will suppress the installation of 41 <filename>libiberty.a</filename>. We want to use the version of 42 <filename>libiberty.a</filename> provided by Binutils:</para> 43 44 <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen> 40 45 41 46 <para>The GCC documentation recommends building GCC outside of the source -
chapter06/grub.xml
rbcd0ce7 r37dcf2a 22 22 <para>First fix a compilation problem with GCC-&gcc-version;:</para> 23 23 24 <screen><userinput> patch -Np1 -i ../&grub-patch;</userinput></screen>24 <screen><userinput>sed -i 's/2 long/2/' stage2/fsys_reiserfs.c</userinput></screen> 25 25 26 26 <para>Now prepare Grub for compilation:</para> -
chapter06/man.xml
rbcd0ce7 r37dcf2a 15 15 16 16 <para>We'll make three adjustments to the sources of Man.</para> 17 18 <para>The first patch comments out the "MANPATH /usr/man" line in the19 <filename>man.conf</filename> file to prevent redundant results when using20 programs such as <userinput>whatis</userinput>:</para>21 17 22 <screen><userinput>patch -Np1 -i ../&man-manpath-patch;</userinput></screen> 23 24 <para>The second patch adds the <emphasis>-R</emphasis> option to the 25 <emphasis>PAGER</emphasis> variable so that escape sequences are 26 handled properly:</para> 27 28 <screen><userinput>patch -Np1 -i ../&man-pager-patch;</userinput></screen> 29 30 <para>The third and last patch prevents a problem when man pages not formatted 31 with more than 80 columns are used in conjunction with recent releases of 32 <userinput>groff</userinput>:</para> 18 <para>The first is a patch which allows Man to work better with recent releases 19 of Groff. In particular, man pages will now display using the full terminal 20 width instead of being limited to 80 characters:</para> 33 21 34 22 <screen><userinput>patch -Np1 -i ../&man-80cols-patch;</userinput></screen> 35 23 24 <para>The second is a sed substitution to add the <emphasis>-R</emphasis> 25 switch to the <emphasis>PAGER</emphasis> variable so that escape sequences are 26 properly handled by Less:</para> 27 28 <screen><userinput>sed -i 's/-is/&R/' configure</userinput></screen> 29 30 <para>The third is also a sed substitution to comment out the "MANPATH 31 /usr/man" line in the <filename>man.conf</filename> file to prevent redundant 32 results when using programs such as <userinput>whatis</userinput>:</para> 33 34 <screen><userinput>sed -i 's%MANPATH./usr/man%#&%' src/man.conf.in</userinput></screen> 35 36 36 <para>Now prepare Man for compilation:</para> 37 37
Note:
See TracChangeset
for help on using the changeset viewer.