Build a static libraries for glib 2.24 on windows using mingw32



Hello,

I'm trying to compile glib 2.24 as a big static library, with one .a file for
each module (gobject, gmodule, gthreads, etc...).

So I built all the dependencies and with the help of mingw (I don't have VS on
my Windows XP box), start to build the whole glib thing.
It went well, but what I got is for each module a dll and a .a file 
(libgobject-2.0-0.dll and libgobject-2.0.dll.a) instead of (libgobject-2.0.a).

And in the build I keep seeing -DDLL_EXPORT everywhere.

The truth is I don't understand quite well the role of DLL_EXPORT and how to 
get from a DLL build to a static build.
I tried to remove all mentions to DLL_EXPORT in the makefiles but hey keep
reappearing again and again :) To my utter despair.

For now, the perfect solution would be to make minor changes to the build
process (but I don't know where) configure and make the all thing.

Can this be done at mingw level ?
Is there anyone that can point me in the right direction about this ? Another solution would be to collect all the generated .o files and make a big .a file from them. Would that work ? Wouldn't the different winmain functions collide at some point ? Should I use ar or libtool to create the .a file from the .o's ? So any help would be appreciated. Cheers, Carl.


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