1 The objects in this prebuilt directory can be rebuilt 2 using the source archive hosted at 3 4 http://sourceforge.net/projects/flex/files/ 5 6 Commands: 7 8 ./configure 9 make CFLAGS="-static" LDFLAGS="-static" 10 # (Disregard the errors at the end of the build) 11 rm flex 12 make CFLAGS="-static" LDFLAGS="-static" flex 13 # Copy the linker command line, replace it with static libm.a 14 gcc -static -static -o flex ccl.o dfa.o ecs.o scanflags.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o options.o scanopt.o buf.o tables.o tables_shared.o filter.o regex.o /usr/lib/x86_64-linux-gnu/libm.a 15