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.

Reply via email to