Eric Y. Kow: > On Sun, Mar 16, 2008 at 12:32:46 +0100, Mads Lindstrøm wrote: > > I have made it now. It is compiled with Debian unstable's ghc. > > By the way, your files seem to be a bit smaller than the MacOS X and > Windows one. Are you also using -hcprof and --enable-split-objs? >
for GHC 6.8, partly yes. It was build like: PREFIX=/usr/local chmod 755 configure runhaskell Setup configure --enable-split-objs --hcprof --prefix=$PREFIX runhaskell Setup build runhaskell Setup install cd wx runhaskell Setup configure --enable-split-objs --prefix=$PREFIX runhaskell Setup build runhaskell Setup install cd .. make debdist the GHC 6.6 build was without --enable-split-objs and without --hcprof. Another reason for the different sizes is that (atleast the msw zip) contains 14 megabytes of documentation. The .deb do not. But the largest difference is in the lib directories. MSW is 78 megabyte, .deb is 22 megabytes. I am unsure why. Hope I have not made an error. But the packages do seem to work. I did a du -hs of the .deb (ghc 6.8 version): du -hs * 1,4M imports 676K libwx.a 1,4M libwxc-gtk2.6.3-0.10.3.so 656K libwxcore0.a 2,5M libwxcore1.a 3,2M libwxcore2.a 3,2M libwxcore.a 488K wxcore0.o 2,2M wxcore1.o 2,7M wxcore2.o 2,6M wxcore.o 4,0K wxcore.pkg 568K wx.o 4,0K wx.pkg and the MSW: 2,7M imports 1,3M libwx.a 2,7M libwxc-msw2.6.4-0.10.3.a 1,4M libwxcore0.a 1,1M libwxcore0_p.a 3,9M libwxcore1.a 4,9M libwxcore1_p.a 5,5M libwxcore2.a 6,4M libwxcore2_p.a 7,2M libwxcore.a 9,1M libwxcore_p.a 1,4M libwx_p.a 3,2M wxc-msw2.6.4-0.10.3.dll 500K wxcore0.o 872K wxcore0.p_o 2,0M wxcore1.o 4,4M wxcore1.p_o 2,7M wxcore2.o 5,7M wxcore2.p_o 2,8M wxcore.o 7,9M wxcore.p_o 600K wx.o and the .deb (GHC 6.6): 1,5M imports 636K libwx.a 1,4M libwxc-gtk2.6.3-0.10.3.so 584K libwxcore0.a 2,4M libwxcore1.a 3,1M libwxcore2.a 3,0M libwxcore.a 420K wxcore0.o 2,1M wxcore1.o 2,7M wxcore2.o 2,4M wxcore.o 4,0K wxcore.pkg 532K wx.o 4,0K wx.pkg These differences are concerning. Could it be that Windows do statically link against wxWidgets and Linux do not? (Warning! I really do not know if this the right answer. But just guessing). Maybe it is because I left out profiling support (from all of GHC 6.6 and from Wx in GHC 6.8) ? Is that what the .p_hi files are about? Greetings, Mads Lindstrøm ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ wxhaskell-devel mailing list wxhaskell-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel