Changeset 37e35d2 for chapter08/bc.xml


Ignore:
Timestamp:
06/29/2020 07:55:01 AM (4 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
c4804e8
Parents:
d4fdde6
Message:

Update to new lfs structure

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 moved

Legend:

Unmodified
Added
Removed
  • chapter08/bc.xml

    rd4fdde6 r37e35d2  
    3232
    3333      <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>
    3636      </seglistitem>
    3737    </segmentedlist>
     
    4141  <sect2 role="installation">
    4242    <title>Installation of Bc</title>
    43 <!--
    44     <para>First, change an internal script to use <command>sed</command> instead
    45     of <command>ed</command>:</para>
    4643
    47 <screen><userinput remap="pre">cat &gt; bc/fix-libmath_h &lt;&lt; "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>
    5445
    55 sed -e '$ s/$/0}/' \
    56     -i libmath.h
    57 EOF</userinput></screen>
    58 
    59     <para>Create temporary symbolic links so the package can find
    60     the readline library and confirm that its required libncurses
    61     library is available. Even though the libraries are in /tools/lib
    62     at this point, the system will use /usr/lib at the end of
    63     this chapter.</para>
    64 
    65 <screen><userinput remap="pre">ln -sv /tools/lib/libncursesw.so.6 /usr/lib/libncursesw.so.6
    66 ln -sfv libncursesw.so.6 /usr/lib/libncurses.so</userinput></screen>
    67 
    68     <para>Fix an issue in <command>configure</command> due to missing
    69     files in the early stages of LFS:</para>
    70 
    71 <screen><userinput remap="pre">sed -i -e '/flex/s/as_fn_error/: ;; # &amp;/' 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 -->
    8046<screen><userinput remap="configure">PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3</userinput></screen>
    8147
    8248    <variablelist>
    8349      <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
    9551      <varlistentry>
    9652        <term><parameter>CC=gcc CFLAGS="-std=c99"</parameter></term>
    9753        <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>
    9955        </listitem>
    10056      </varlistentry>
     
    11975
    12076<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 percentage
    124     of tests (10 of 12,144) that will indicate a round off error at the last
    125     digit.</para>
    126 
    127 <screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
    128 -->
    12977
    13078    <para>To test bc, run:</para>
Note: See TracChangeset for help on using the changeset viewer.