Details on this package are located in Section 10.29.2, “Contents of Flex.”
The Flex package contains a utility for generating programs that recognize patterns in text.
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 ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes EOF
Prepare Flex for compilation:
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ --build=${CLFS_HOST} --host=${CLFS_TARGET} \ --cache-file=config.cache
Compile the package:
make
Install the package:
make install
Details on this package are located in Section 10.29.2, “Contents of Flex.”