Hello,

I am the author of a bc with GNU extensions
(https://github.com/gavinhoward/bc) that enables it to help build the
Linux kernel. I think that my bc would be useful in Linux from
Scratch.

I have run through the entire LFS book with nothing changed except to
replace GNU bc with the current release of my bc
(https://github.com/gavinhoward/bc/releases/tag/1.1.3).

The required instructions are:

<<Begin instructions>>
Prepare Bc for compilation:

    PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3

The meaning of the configure options:

* PREFIX=/usr
  Like --prefix in other packages.
* CC=gcc
  Set the C compiler. This package defaults to c99, which doesn't exist.
* CFLAGS="-std=c99"
  Sets the C standard that gcc uses to be C99.
* -G
  Disables tests in the test suite that requires another bc to
generate results for.
* -O3
  Enables optimization. This bc gets an order of magnitude more
performance from optimizations, and these optimizations have been
tested.

Compile the package:

    make

If desired, test bc:

    make test

Install the package:

    make install
<<End instructions>>

Would there be interest in switching to this new bc?

Gavin Howard
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to