10.44. Flex-2.5.35 32 Bit Libraries

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

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

Prepare Flex for compilation:

CC="gcc ${BUILD32}" ./configure --prefix=/usr

Compile the package:

make libfl.a libfl_pic.a

Install the package:

make install-libLIBRARIES

There are some packages that expect to find the lex library in /usr/lib. Create a symlink to account for this:

ln -sv libfl.a /usr/lib/libl.a

Details on this package are located in Section 10.45.2, “Contents of Flex.”