Use --whole-archive linker option for minw too.
It is already used for Linux and FreeBSD.