"Ian Puleston" <i...@underpressuredivers.com> writes: > After having fixed a bug in GTK 3's GtkComboBox, I now want to build a > patched version of libgtk-3-0.dll to use. But makepkg has generated a > makefile that builds the debug version which is over 31Mbytes where the > original distributable version in msys2 is 7.3Mbytes, so my question is how > to now build an optimized non-debug version of this? > > > > After some poking around in gtk-3's configure script I found a > --enable-debug option, and re-running configure with "--enable-debug=no" > added resulted in an 8.5Mbyte libgtk-3-0.dll, so better but that is still > significantly bigger than the distributable version. The CFLAGS passed to > configure do include "-O2" so am I missing some other optimization > somewhere? > > > > How is this normally done when building a distributable DLL for msys2?
You need to remove the build info from the binary file, which is done with the strip utility (`strip libgtk-3-0.dll'). I guess you looked directly into the build directory that makepkg-mingw used. The binaries packaged into the .xz file created by makepkg-mingw are already stripped. ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users