Re: Win32: Getting size of DLLs down for redist with app

On Thu, 2008-03-27 at 21:57 -0700, Paul Goins wrote:
> Hello,
> This question may be newbie-ish, but oh well, here it goes.
> I've nearly got my app in good enough shape to bundle up and release, but here's the issue that's bugging me now: my DLL sizes for GTKmm and friends are a tad large...
> $ ls -al *mm*.dll
> -rwxr-xr-x    1 Vultaire Administ  2324687 Mar 25 11:28 libatkmm-1.6-1.dll
> -rwxr-xr-x    1 Vultaire Administ  1670572 Mar 25 10:39 libcairomm-1.0-1.dll
> -rwxr-xr-x    1 Vultaire Administ  3597587 Mar 25 11:29 libgdkmm-2.4-1.dll
> -rwxr-xr-x    1 Vultaire Administ  4373851 Mar 25 10:30 libglibmm-2.4-1.dll
> -rwxr-xr-x    1 Vultaire Administ  1099662 Mar 25 10:29 libglibmm_generate_extra_defs-2.4-1.dll
> -rwxr-xr-x    1 Vultaire Administ 35328804 Mar 25 11:29 libgtkmm-2.4-1.dll
> -rwxr-xr-x    1 Vultaire Administ  2420202 Mar 25 11:28 libpangomm-1.4-1.dll
> I'm seeing 48.4MB for these dlls.  Is there any way to get this down in size, barring a recompile of all this stuff with 'CXXFLAGS=-s -O2' or something like that?
> I know MinGW has a strip tool which works nicely on executables, but running "strip -g *.dll" or similar seems to cause nothing but issues.

What do you mean by "causes nothing but issues"? I don't have any
problems stripping DLLs (though I don't use the -g flag, and I don't
know what it does).

I only had problems stripping .dll.a files (import libraries) for which
I need to pass the --strip-unneeded flag, otherwise strip renders them
unusable (as in applications linking against them get undefined
references for the symbols that should be defined in the import

> Thanks in advance.
> - Paul Goins


> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org

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