|
|
e2eeac2 |
compat-flex for Fedora
|
|
|
e2eeac2 |
----------------------
|
|
|
e2eeac2 |
|
|
|
e2eeac2 |
The package compat-flex is provided as a safe default for cases, where
|
|
|
e2eeac2 |
new flex (2.5.33 at the time of this writing) fails to work for some
|
|
|
e2eeac2 |
reason. It is possible to have this package installed alongside flex,
|
|
|
e2eeac2 |
and pick whichever of them you need at the moment.
|
|
|
e2eeac2 |
|
|
|
e2eeac2 |
You need to do the following to compile your project with compat-flex:
|
|
|
e2eeac2 |
|
|
|
e2eeac2 |
+ Process the .l file with either flex-2.5.4a, or flex-2.5.4a++,
|
|
|
e2eeac2 |
depending on whether you want C or C++ scanner.
|
|
|
e2eeac2 |
|
|
|
e2eeac2 |
+ Use -I/usr/include/flex-2.5.4a compilation flag when you use
|
|
|
e2eeac2 |
<FlexLexer.h> header file.
|
|
|
e2eeac2 |
|
|
|
e2eeac2 |
+ Use -L/usr/lib/flex-2.5.4a (or -L/usr/lib64/flex-2.5.4a on 64bits)
|
|
|
e2eeac2 |
linker flag when linking against -lfl.
|
|
|
e2eeac2 |
|
|
|
e2eeac2 |
If the build system supports this, all you need to do is provide the
|
|
|
e2eeac2 |
right values of FLEX, CFLAGS or CPPFLAGS, and LDFLAGS environment
|
|
|
e2eeac2 |
variables.
|