Re: [Gimp-developer] Windows build



On Wednesday, August 1, 2012, 1:55:52, Jari Niskala wrote:

> Now to the question. I managed to build the 2.8.0 release from sources for
> Win32 (using MinGW) but I'm trying to figure out why my build is quite
> large, ~32MB, compared to the official Windows build coming in around 5MB.
> This is for the executable but I'm also seeing larger gimp dlls.

The "official" builds are stripped to external .debug files. If you
don't care about debug information, you can just run strip on
executables and DLLs, or you could just move the debug info to
separate files with these two commands (run them from the root of
install prefix):

  find \( -iname '*.dll' -or -iname '*.exe' -or -iname '*.pyd' \) -type f -exec x86_64-w64-mingw32-objcopy -v --only-keep-debug '{}' '{}'.debug \;
  find \( -iname '*.dll' -or -iname '*.exe' -or -iname '*.pyd' \) -type f -exec x86_64-w64-mingw32-objcopy -v --add-gnu-debuglink='{}'.debug '{}' --strip-unneeded \;

-- 
< Jernej Simončič ><><><><>< http://eternallybored.org/ >

There's never time to do it right, but there is always time to do it over.
       -- Weskimen's Law



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]