Changeset efcb393 for chapter05/bzip2.xml
- Timestamp:
- 05/03/2020 09:02:51 PM (4 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, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, 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:
- a715dec
- Parents:
- 9d719e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/bzip2.xml
r9d719e2 refcb393 44 44 <title>Installation of Bzip2</title> 45 45 46 <para>Apply a patch that will install the documentation for this 47 package:</para> 48 49 <screen><userinput remap="pre">patch -Np1 -i ../&bzip2-docs-patch;</userinput></screen> 50 51 <para>The following command ensures installation of symbolic links are 52 relative:</para> 53 54 <screen><userinput remap="pre">sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile</userinput></screen> 55 56 <para>Ensure the man pages are installed into the correct location:</para> 57 58 <screen><userinput remap="pre">sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile</userinput></screen> 59 46 60 <para>The Bzip2 package does not contain a <command>configure</command> 47 61 script. There are two <filename>Makefile</filename>, one for the shared … … 49 63 do the compilation in two stages. First the shared library:</para> 50 64 51 <screen><userinput remap="make">make -f Makefile-libbz2_so65 <screen><userinput remap="make">make CC=$LFS_TGT-gcc -f Makefile-libbz2_so 52 66 make clean</userinput></screen> 53 67 … … 70 84 <para>Compile and test the package with:</para> 71 85 72 <screen><userinput remap="make">make </userinput></screen>86 <screen><userinput remap="make">make CC=$LFS_TGT-gcc AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib</userinput></screen> 73 87 74 88 <para>Install the package:</para> 75 89 76 <screen><userinput remap="install">make PREFIX=/tools install 77 cp -v bzip2-shared /tools/bin/bzip2 78 cp -av libbz2.so* /tools/lib 79 ln -sv libbz2.so.1.0 /tools/lib/libbz2.so</userinput></screen> 90 <screen><userinput remap="install">make PREFIX=$LFS/usr install</userinput></screen> 91 92 <para>Install the shared <command>bzip2</command> binary into the 93 <filename class="directory">/bin</filename> directory, make some necessary 94 symbolic links, and clean up:</para> 95 96 <screen><userinput remap="install">cp -v bzip2-shared $LFS/bin/bzip2 97 cp -av libbz2.so* $LFS/lib 98 ln -sv ../../lib/libbz2.so.1.0 $LFS/usr/lib/libbz2.so 99 rm -v $LFS/usr/bin/{bunzip2,bzcat,bzip2} 100 ln -sv bzip2 $LFS/bin/bunzip2 101 ln -sv bzip2 $LFS/bin/bzcat</userinput></screen> 80 102 81 103 </sect2> … … 83 105 <sect2 role="content"> 84 106 <title/> 85 86 107 <para>Details on this package are located in 87 108 <xref linkend="contents-bzip2" role="."/></para>
Note:
See TracChangeset
for help on using the changeset viewer.