[libgsf PATCH] Support cross-compilation under Fedora MinGW

Jody Goldberg jody at gnome.org
Sun Nov 23 22:29:53 UTC 2008


On Sat, Nov 22, 2008 at 09:55:51PM +0000, Richard W.M. Jones wrote:
> So I hope this is the right place to post a couple
> of libgsf patches which enable libgsf to be cross-compiled using
> Fedora MinGW cross-compiler.
You've got the right place.
 
> The first patch changes the way that libbz2 / bzlib.h is detected.
> http://www.nabble.com/failed-tests-AC_CHECK_LIB-td19588119.html#a19589469
Applied along with a minor cosmetic tweak.  Thanks for looking at
this.   I also tidied up our gnumeric-win32 patches for bzip2 to be
more work properly.
 
> The second patch, considerably simpler, enables deprecated functions
> in glib, because otherwise G_WIN32_DLLMAIN_FOR_DLL_NAME isn't defined
> in gsf/gsf-utils.c.  I'm not really familiar with what this macro
> does, and maybe a better solution is just to not use it if the macro
> isn't defined.
I went a different direction on this one and implemented a DllMain
routine to stash the hinst which appears to be what most others do.
We only needed it to access installation prefix when initializing
gettext.

Thanks for the assistance.   Patches will be in 1.14.11



More information about the mingw mailing list