Re: Creating a partial library

2010-02-06 Thread John Calcote
Hi Ralf, On 2/6/2010 9:32 AM, Ralf Wildenhues wrote: Hello, to round up a couple of minor bits here: * John Calcote wrote on Wed, Feb 03, 2010 at 05:57:49PM CET: The trouble with LIBRARIES is that it only builds non-PIC static libraries, which can't be linked into a libtool shared library

Re: Creating a partial library

2010-02-06 Thread Ralf Wildenhues
Hello, to round up a couple of minor bits here: * John Calcote wrote on Wed, Feb 03, 2010 at 05:57:49PM CET: > The trouble with LIBRARIES is that it only builds non-PIC static > libraries, which can't be linked into a libtool shared library. My > example has a couple of minor flaws that I realize

Re: Creating a partial library

2010-02-04 Thread Justin Seyster
On Wed, Feb 3, 2010 at 7:50 PM, Bob Friesenhahn wrote: > Since 9/11, 'hope' is not sufficient protection in today's world. > > Not all systems are capable of producing a 'partial' library, leaving some > symbols unresolved and without knowing where the symbols will come from. > Systems which come

Re: Creating a partial library

2010-02-03 Thread Bob Friesenhahn
On Wed, 3 Feb 2010, Justin Seyster wrote: My hope is that this approach will protect users of the framework from the most possible hidden linking danger. Since 9/11, 'hope' is not sufficient protection in today's world. Not all systems are capable of producing a 'partial' library, leaving so

Re: Creating a partial library

2010-02-03 Thread Justin Seyster
Thanks, this advice gives me exactly what I asked for (even if it turns out that's not what I really wanted :-). I agree entirely that putting the framework into the main program is a good solution, but I'm not involved with the main program's development, so that's not an option for me. Right no

Re: Creating a partial library

2010-02-03 Thread John Calcote
Steffan, On 2/3/2010 5:50 AM, Steffen Dettmer wrote: On Wed, Feb 3, 2010 at 8:33 AM, John Calcote wrote: (PIC-based static only) library is to use the "noinst" prefix. But libtool can be used to manually install a convenience library, so you could use libtool to do this in an install-exec-

Re: Creating a partial library

2010-02-03 Thread Bob Friesenhahn
On Wed, 3 Feb 2010, Andrew W. Nosenko wrote: Therefore, the safest way is to link your "framework" into main process (and only into main process) and let the main process to provide these "framework" functions to the modules loaded by him. I find it convenient to have loadable modules depend o

Re: Creating a partial library

2010-02-03 Thread Steffen Dettmer
On Wed, Feb 3, 2010 at 8:33 AM, John Calcote wrote: > (PIC-based static only) library is to use the "noinst" prefix. But libtool > can be used to manually install a convenience library, so you could use > libtool to do this in an install-exec-local rule in the Makefile.am file > that builds (for i

Re: Creating a partial library

2010-02-03 Thread Andrew W. Nosenko
On Wed, Feb 3, 2010 at 03:39, Justin Seyster wrote: > I'm working on a support framework for plug-ins, and I'm struggling to > come up with a way to compile it.  I'm leaning towards building it as > a convenience library, but there a few SNAFUs. > > Each plug-in is itself a shared library.  I woul

Re: Creating a partial library

2010-02-02 Thread John Calcote
Hi Justin, On 2/2/2010 6:39 PM, Justin Seyster wrote: I'm pretty sure that making the framework a convenience library is my ideal solution: the plug-in author will be able to distribute a single shared object without any non-standard dependencies. However, I read that Automake does not allow i

Creating a partial library

2010-02-02 Thread Justin Seyster
I'm working on a support framework for plug-ins, and I'm struggling to come up with a way to compile it. I'm leaning towards building it as a convenience library, but there a few SNAFUs. Each plug-in is itself a shared library. I would like to avoid having a second shared library that the plug-i