Changeset 1b28d1a for chapter06/bc.xml


Ignore:
Timestamp:
07/27/2019 11:23:07 AM (5 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
abbd53b8
Parents:
5839010
Message:

MultiLib: Merge changes from trunk

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/bc.xml

    r5839010 r1b28d1a  
    4141  <sect2 role="installation">
    4242    <title>Installation of Bc</title>
    43 
     43<!--
    4444    <para>First, change an internal script to use <command>sed</command> instead
    4545    of <command>ed</command>:</para>
     
    7070
    7171<screen><userinput remap="pre">sed -i -e '/flex/s/as_fn_error/: ;; # &amp;/' configure</userinput></screen>
    72 
     72-->
    7373    <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>
     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<screen><userinput remap="configure">PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3</userinput></screen>
    7981
    8082    <variablelist>
    8183      <title>The meaning of the configure options:</title>
    82 
     84<!--
    8385      <varlistentry>
    84         <term><parameter>--with-readline</parameter></term>
     86        <term><parameter>- -with-readline</parameter></term>
    8587        <listitem>
    8688          <para>This option tells Bc to use the <filename
     
    9092        </listitem>
    9193      </varlistentry>
     94-->
     95      <varlistentry>
     96        <term><parameter>CC=gcc CFLAGS="-std=c99"</parameter></term>
     97        <listitem>
     98          <para>These parameters specify the compiler and C standard to use.</para>
     99        </listitem>
     100      </varlistentry>
    92101
     102      <varlistentry>
     103        <term><parameter>-O3</parameter></term>
     104        <listitem>
     105          <para>Specify the optimization to use.</para>
     106        </listitem>
     107      </varlistentry>
     108
     109      <varlistentry>
     110        <term><parameter>-G</parameter></term>
     111        <listitem>
     112          <para>Omit  parts of the test suite that won't work
     113          without a GNU bc present.</para>
     114        </listitem>
     115      </varlistentry>
    93116    </variablelist>
    94117
     
    96119
    97120<screen><userinput remap="make">make</userinput></screen>
    98 
     121<!--
    99122    <para>To test bc, run the commands below. There is quite a bit of output,
    100123    so you may want to redirect it to a file. There are a very small percentage
     
    103126
    104127<screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
     128-->
     129
     130    <para>To test bc, run:</para>
     131
     132<screen><userinput remap="test">make test</userinput></screen>
     133
    105134
    106135    <para>Install the package:</para>
Note: See TracChangeset for help on using the changeset viewer.