Turns out that our build script for windows-nsis/generic doesn't specify
any optimization flags.

I added -O2 and got 400Mbit/s with mingw, which is better than 340 but
worse than VS's 425.

Haven't yet checked which flags are used for openssl build.

Also adding "-O2" to CFLAGS breaks rc build:

libtool: compile:  i686-w64-mingw32-windres -DHAVE_CONFIG_H -I. -I../..
-I../../include -I../../include -I../../src/compat -DWIN32_LEAN_AND_MEAN
openvpnmsica_resources.rc  -o .libs/openvpnmsica_resources.o
i686-w64-mingw32-windres: unknown format type `2'
i686-w64-mingw32-windres: supported formats: rc res coff
Makefile:827: recipe for target 'openvpnmsica_resources.lo' failed

This happens because windres treats "-O" as own option, so I removed .rc
files from Makefile(s).am for testing.

I'll play with optimizations flags and find a proper solution for rc build.
I think this has to be fixed also in the next 2.4 release.

Openvpn-devel mailing list

Reply via email to