Changeset efcb393 for chapter06/bc.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
-
chapter06/bc.xml
r9d719e2 refcb393 41 41 <sect2 role="installation"> 42 42 <title>Installation of Bc</title> 43 <!--44 <para>First, change an internal script to use <command>sed</command> instead45 of <command>ed</command>:</para>46 43 47 <screen><userinput remap="pre">cat > bc/fix-libmath_h << "EOF" 48 #! /bin/bash 49 sed -e '1 s/^/{"/' \ 50 -e 's/$/",/' \ 51 -e '2,$ s/^/"/' \ 52 -e '$ d' \ 53 -i libmath.h 44 <para>Prepare Bc for compilation:</para> 54 45 55 sed -e '$ s/$/0}/' \56 -i libmath.h57 EOF</userinput></screen>58 59 <para>Create temporary symbolic links so the package can find60 the readline library and confirm that its required libncurses61 library is available. Even though the libraries are in /tools/lib62 at this point, the system will use /usr/lib at the end of63 this chapter.</para>64 65 <screen><userinput remap="pre">ln -sv /tools/lib/libncursesw.so.6 /usr/lib/libncursesw.so.666 ln -sfv libncursesw.so.6 /usr/lib/libncurses.so</userinput></screen>67 68 <para>Fix an issue in <command>configure</command> due to missing69 files in the early stages of LFS:</para>70 71 <screen><userinput remap="pre">sed -i -e '/flex/s/as_fn_error/: ;; # &/' configure</userinput></screen>72 -->73 <para>Prepare Bc for compilation:</para>74 <!--75 <screen><userinput remap="configure">./configure - -prefix=/usr \76 - -with-readline \77 - -mandir=/usr/share/man \78 - -infodir=/usr/share/info</userinput></screen>79 -->80 46 <screen><userinput remap="configure">PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3</userinput></screen> 81 47 82 48 <variablelist> 83 49 <title>The meaning of the configure options:</title> 84 <!-- 85 <varlistentry> 86 <term><parameter>- -with-readline</parameter></term> 87 <listitem> 88 <para>This option tells Bc to use the <filename 89 class="libraryfile">readline</filename> library that is already 90 installed on the system rather than using its own readline 91 version.</para> 92 </listitem> 93 </varlistentry> 94 --> 50 95 51 <varlistentry> 96 52 <term><parameter>CC=gcc CFLAGS="-std=c99"</parameter></term> 97 53 <listitem> 98 <para>These parameters specify the compiler and C standard to use.</para>54 <para>These parameters specify the compiler and the C standard to use.</para> 99 55 </listitem> 100 56 </varlistentry> … … 119 75 120 76 <screen><userinput remap="make">make</userinput></screen> 121 <!--122 <para>To test bc, run the commands below. There is quite a bit of output,123 so you may want to redirect it to a file. There are a very small percentage124 of tests (10 of 12,144) that will indicate a round off error at the last125 digit.</para>126 127 <screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>128 -->129 77 130 78 <para>To test bc, run:</para>
Note:
See TracChangeset
for help on using the changeset viewer.