[lfs-dev] bc ready

Gavin Howard gavin.d.howard at gmail.com
Mon Jul 8 10:56:54 PDT 2019


I am the author of the bc that is going to be put in
(http://wiki.linuxfromscratch.org/lfs/ticket/4436), and it's time for
me to say that it is ready to be put in. The reason: I believe that it
is complete, so I have switched from active development to active

The instructions are still the same:

<<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

Compile the package:


If desired, test bc:

    make test

Install the package:

    make install
<<End instructions>>

The URL to download from is:


Checksums are below.

$ sha512sum bc-2.1.0.tar.xz

$ sha256sum bc-2.1.0.tar.xz

$ stat -c '%s  %n' bc-2.1.0.tar.xz
153912  bc-2.1.0.tar.xz

I would be happy to help integrate this into LFS.

Gavin Howard

More information about the lfs-dev mailing list