6.19. Flex-2.5.35

The Flex package contains a utility for generating programs that recognize patterns in text.

6.19.1. Installation of Flex

The following patch contains fixes to generate proper GCC 4.4.x code:

patch -Np1 -i ../flex-2.5.35-gcc44-1.patch

When cross compiling, the configure script does not determine the correct values for the following. Set the values manually:

cat > config.cache << EOF

Prepare Flex for compilation:

./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.29.2, “Contents of Flex.”