MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« Flex 64-bit HOME TCL »

Flex 32-bit

Name: Flex 32-bit
Summary: The fast lexer
License: BSD-3-Clause
Version: 2.6.4
URL: https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz

Average Build Time: 0.1 SBU
Used Install Space: 33 MiB

Configuration

To configure Flex 32-bit for install into the build root, run the following command:

make distclean
CC="gcc -m32" ./configure                       \
            --host=i686-pc-linux-gnu            \
            --prefix=/usr                       \
            --libdir=/usr/lib                   \
            --libexecdir=/usr/lib               \
            --docdir=/usr/share/doc/flex-2.6.4  \
            --disable-static

Compilation and Installation

To compile Flex 32-bit, run the following command:

make

Finally, to install Flex 32-bit into the build tree, run the following command:

make DESTDIR=$PWD/DESTDIR install
cp -Rv DESTDIR/usr/lib/* /usr/lib/
rm -fv /usr/lib/libfl.la

Contents

See the contents section of the 64-bit build of Flex for details.

Navigation    
« Flex 64-bit HOME TCL »