perl -pi.orig -e " s!^(LINK_FLAGS\s*=)!$1 -static-libgcc -static-libstdc++ !" win32/Makefile win32/makefile.mk