- GCC and MinGW has options “-msse”/"-msse2". This options enable sse, but not generate sse instructions. For sse instruction generation need add option “-mfpmath=sse” with “-msse”/"-msse2".
- For static linking c-runtime on mingw may be need option “-static” instead of “-static-libgcc” and “-static-libstdc++”. Option “-static” link staticly c-runtime and libpthread.
Edit: If build 64-bit code, “-mfpmath=sse” enabled by default.