Merge .CRT section into .rdata when linking to mingw lib. This silences the warnings about uninitialized constructors.

svn path=/branches/cmake-bringup/; revision=49799
This commit is contained in:
Timo Kreuzer 2010-11-26 22:52:46 +00:00
parent c2adbec142
commit 0ff3955b9b

View file

@ -2,6 +2,10 @@
#include <internal.h>
#include <sect_attribs.h>
#ifdef _MSC_VER
#pragma comment(linker, "/merge:.CRT=.rdata")
#endif
_CRTALLOC(".CRT$XIA") _PVFV __xi_a[] = { NULL };
_CRTALLOC(".CRT$XIZ") _PVFV __xi_z[] = { NULL };
_CRTALLOC(".CRT$XCA") _PVFV __xc_a[] = { NULL };