6.13. Bison-3.0

The Bison package contains a parser generator.

6.13.1. Installation of Bison

Apply a sed which disables the building of bison.help when cross-compiling.

cp -v Makefile.in{,.orig}
sed '/bison.help:/s/^/# /' Makefile.in.orig > Makefile.in

The configure script does not determine the correct value for the following. Set the value manually:

echo "ac_cv_prog_lex_is_flex=yes" > config.cache

Prepare Bison for compilation:

CC="${CC} ${BUILD64}" M4=m4 ./configure --prefix=/tools \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \

Compile the package:


Install the package:

make install

Details on this package are located in Section 10.27.2, “Contents of Bison.”