Re: Different object lists for static and shared libraries

2009-06-28 Thread Ralf Wildenhues
Hello Charles, * Charles Wilson wrote on Sun, Jun 28, 2009 at 12:54:59AM CEST: The best I could come up with is this: IN the source code for the object, do - top of file - #if defined(BUILDING_MY_LIBRARY) defined(DLL_EXPORT) stuff #endif - end of file - This way, the

Re: Different object lists for static and shared libraries

2009-06-28 Thread Charles Wilson
Ralf Wildenhues wrote: * Charles Wilson wrote on Sun, Jun 28, 2009 at 12:54:59AM CEST: Is there a better way? Not that I know of. The current code might cause the object list for the static library to be a larger set than that for the shared library (because it won't add objects compiled

Different object lists for static and shared libraries

2009-06-27 Thread Charles Wilson
I have a library that I'm building using libtool. When built statically, I want it to include a certain list of object files. When linking that library dynamically, I want to add an additional object (windows resources, compiled using windres). I already have it working so that BOTH versions get