Re: Static linking on Windows



On Wed, 2007-11-07 at 12:06 -0500, Bruce Sherwood wrote:
> Thanks. Just for grins I tried the experiment of trying -static and 
> indeed the build failed miserably.
> 
> With shared libraries, I seem to need to add all of the dll's listed 
> below, which increases the length of the Python module (compared to 
> using Windows-specific code) from 4 MB to 40 MB.

I doubt it's that much when stripped. Maybe this includes the debug
symbols.

>  Not a show-stopper, but 
> a bit annoying as a download to add to Python. The crude way I figured 
> out what dll's I needed was to try running the program from a typescript 
> and get told that I was missing a library, then copying that library 
> into the module's directory (I had previously changed the name of the 
> MinGW directory to xxxMinGW to exclude finding the dll there).
> 
> Is there a more intelligent way to identify which dll's I need?
> 
> Could some of these be loaded statically even if not all of them can?
> 
> Bruce Sherwood
> 
> ---------------------------
> 
> iconv.dll
> intl.dll
> libatk-1.0-0.dll
> libatkmm-1.6-1.dll
> libcairo-2.dll
> libcairomm-1.0-1.dll
> libfontconfig-1.dll
> libfreetype-6.dll
> libgdk-win32-2.0-0.dll
> libgdk_pixbuf-2.0-0.dll
> libgdkglext-win32-1.0-0.dll
> libgdkmm-2.4-1.dll
> libglade-2.0-0.dll
> libglademm-2.4-1.dll
> libglib-2.0-0.dll
> libglibmm-2.4-1.dll
> libgmodule-2.0-0.dll
> libgobject-2.0-0.dll
> libgthread-2.0-0.dll
> libgtk-win32-2.0-0.dll
> libgtkglext-win32-1.0-0.dll
> libgtkmm-2.4-1.dll
> libpango-1.0-0.dll
> libpangocairo-1.0-0.dll
> libpangoft2-1.0-0.dll
> libpangomm-1.4-1.dll
> libpangowin32-1.0-0.dll
> libpng12.dll
> libsigc-2.0-0.dll
> libxml2.dll
> zlib1.dll

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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