Xilinx / bootgen

bootgen source code
Other
34 stars 42 forks source link

Fix build on machines with modern flex #20

Open jacmet opened 2 years ago

jacmet commented 2 years ago

Bootgen embeds an old version of flex, but uses the system include syntax (#include <>) to reference it, causing conflicts on systems with the development headers for a modern flex version installed, leading to build issues like:

../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()': ../bisonflex/bif.yy.cpp:1608:18: error: no match for 'operator=' (operand types are 'std::istream' {aka 'std::basic_istream'} and 'std::istream' {aka 'std::basic_istream'})

Fix it by using normal local #include statements by:

sed -i 's//"FlexLexer.h"/g' *

Signed-off-by: Peter Korsgaard peter@korsgaard.com