diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-06-22 15:12:06 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2022-06-22 15:16:03 +0800 |
commit | e909a1ebdf37d817f53707c5a998a6786d5af1cd (patch) | |
tree | 9d15283bc17cc57fe9dc5e32966e3e469de3b209 /chapter08/bc.xml | |
parent | c500323f9b88e760988ff5ee4904b1de30953688 (diff) |
bc: enable readline
Using readline can improve line editing feature of bc, but it's not
enabled by default.
As readline is already installed before bc, let's pick up this
improvement with no cost.
Diffstat (limited to 'chapter08/bc.xml')
-rw-r--r-- | chapter08/bc.xml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/chapter08/bc.xml b/chapter08/bc.xml index 9678ddd54..4493f8219 100644 --- a/chapter08/bc.xml +++ b/chapter08/bc.xml @@ -43,7 +43,7 @@ <para>Prepare Bc for compilation:</para> -<screen><userinput remap="configure">CC=gcc ./configure --prefix=/usr -G -O3</userinput></screen> +<screen><userinput remap="configure">CC=gcc ./configure --prefix=/usr -G -O3 -r</userinput></screen> <variablelist> <title>The meaning of the configure options:</title> @@ -56,6 +56,14 @@ </varlistentry> <varlistentry> + <term><parameter>-G</parameter></term> + <listitem> + <para>Omit parts of the test suite that won't work + without a GNU bc present.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter>-O3</parameter></term> <listitem> <para>Specify the optimization to use.</para> @@ -63,10 +71,10 @@ </varlistentry> <varlistentry> - <term><parameter>-G</parameter></term> + <term><parameter>-r</parameter></term> <listitem> - <para>Omit parts of the test suite that won't work - without a GNU bc present.</para> + <para>Enable the use of <application>Readline</application> to + improve the line editing feature of bc.</para> </listitem> </varlistentry> </variablelist> |