+
+ patch -p1 -i $SRC/$name-$version-add_defines.patch
+ touch doc/flex.1
+
+ # Don't build tests
+ sed '51d' -i Makefile.am
+
+ # Build stage1flex for current host
+ CC=gcc CFLAGS="" ./configure --disable-nls \
+ --prefix=/tools \
+ --enable-shared
+
+ make -C lib
+ make -C src stage1flex
+ mv src/stage1flex src/stage1flex.host
+ make distclean
+