From e909a1ebdf37d817f53707c5a998a6786d5af1cd Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 22 Jun 2022 15:12:06 +0800 Subject: 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. --- chapter08/bc.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'chapter08') 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 @@ Prepare Bc for compilation: -CC=gcc ./configure --prefix=/usr -G -O3 +CC=gcc ./configure --prefix=/usr -G -O3 -r The meaning of the configure options: @@ -55,6 +55,14 @@ + + -G + + Omit parts of the test suite that won't work + without a GNU bc present. + + + -O3 @@ -63,10 +71,10 @@ - -G + -r - Omit parts of the test suite that won't work - without a GNU bc present. + Enable the use of Readline to + improve the line editing feature of bc. -- cgit v1.2.3-54-g00ecf