|
From: Earnie B. <ea...@us...> - 2004-07-18 19:10:52
|
Bas Mevissen wrote: >On Sat, 2004-07-17 at 21:56, Heiko Gerdau wrote: > > > >>Maybe the exe is striped on windows per default and is not using the cross >>compiler. Try strip (or option -s) on the cross compiled exe, it should be >>the same small size. >> >> >> > >Thanks Heiko! That did the trick. Now it is around 10k (from 300+). > >But now the next question: why is the behaviour of the cross-compile >version different and, more important, how to let the cross one do this >by default like the native one. > > The difference is likely due to the libraries are stripped for native and are not for the cross-compile. So rebuild your libraries with -s instead of -g. This is easily done like so. ccflags='-O2 -s' make CFLAGS="$ccflags" CXXFLAGS="$ccflags" Earnie -- http://www.mingw.org http://sourceforge.net/projects/mingw https://sourceforge.net/donate/index.php?user_id=15438 |