http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48514
--- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-02 10:51:56 UTC --- well, the underlying issue is here the wrong assumption of the meaning of _DLL macro for Windows targets. This macro gets defined, if shared (means DLL) version of msvcrt.dll is used and has nothing to do with the fact, if a DLL is build, or not. I will prepare a patch for it