This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43601] Enormous increase in DLL object files size in 4.5
- From: "xunxun1982 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 8 Jun 2011 14:28:44 +0000
- Subject: [Bug c++/43601] Enormous increase in DLL object files size in 4.5
- Auto-submitted: auto-generated
- References: <bug-43601-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43601
--- Comment #64 from PcX <xunxun1982 at gmail dot com> 2011-06-08 14:26:05 UTC ---
I found that the shared or static gcc edition made a great difference of the wx
unicode release mono dll size.
-----------------------------
At first, I build the gcc 4.6 with "--enable-static --enable-shared", and then
I use the gcc edition to compile wx2.8.12 unicode release mono dll, that is,
mingw32-make -f makefile.gcc CXXFLAGS="-Os -fno-keep-inline-dllexport"
LDFLAGS="-static -Wl,-s"
this gcc edition can produce the wx dll size about 6-7M, and the dll depends no
any gcc dll.
----------------------------
Another day, I build the gcc4.6 with "--enable-static --disable-shared", and
then do the similar thing, that is,
mingw32-make -f makefile.gcc CXXFLAGS="-Os -fno-keep-inline-dllexport"
LDFLAGS="-Wl,-s"
this gcc edition can produce the wx dll size very large, about 17M, and the dll
depends no any gcc dll, too.
----------------------------
That's why?
Thanks.