Changeset 6dfcfecc for chapter08/bc.xml
- Timestamp:
- 03/31/2021 10:41:39 AM (4 years ago)
- Branches:
- ml-11.0, multilib, xry111/multilib
- Children:
- 7610848
- Parents:
- 811b5a39
- git-author:
- Thomas Trepl <thomas@…> (06/29/2020 07:55:01 AM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:39 AM)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
chapter08/bc.xml
r811b5a39 r6dfcfecc 32 32 33 33 <seglistitem> 34 <seg>&bc- ch6-sbu;</seg>35 <seg>&bc- ch6-du;</seg>34 <seg>&bc-fin-sbu;</seg> 35 <seg>&bc-fin-du;</seg> 36 36 </seglistitem> 37 37 </segmentedlist> … … 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.