Install MSys MSysDVLPR m4 edit config.sub to include msys ./configure --prefix=/usr --disable-nls --build=i686-pc-msys make make install bison edit build-aux/config.sub to include msys ./configure --prefix=/usr --disable-nls --build=i686-pc-msys make make install regex ./configure make ar ru libregex.a regex.o install regex.h to msys include directory install libregex.a to msys lib directory flex edit config.sub to include msys LIBS="-lregex" ./configure --prefix=/usr --disable-nls --build=i686-pc-msys make make install Strip files: find ./bin -type f -exec strip --strip-all '{}' ';' find ./lib -type f -exec strip --strip-debug '{}' ';'