On 13 Apr 2000, Alexandre Oliva wrote:

> On Apr 13, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote:
> 
> > The basic idea is NOT to use the preload feature of libtool but instead
> > build up the data structure myself.
> 
> Wait a minute.  If you're not dlopening anything, you don't need any
> preloading.  `-dlopen' only applies to modules you're going to dlopen.

The idea is if library is not found in the array it will THEN you dlopen
so that modules can still be plugged in at run time provided that the
system is capable of it.

> >   libtool --mode=link-flags -lpspell -lpspell-modules
> 
> > would be really great.
> 
> > So how about it?  How difficult would it be to add that to libtool?
> 
> In general, it can't be done.  Sometimes libtool has to combine flags,
> or to set environment variables, in order to link successfully.

Could you elaborate.  When shared libraries are used simply linking with 
-lpspell should work as all the dependences will automatically be tracked
down provided that the system supports interlibrary dependencies.

If static libraries are used ALL required libraries must be specified on
the command line.  That is what my script will be for.

What else must be done?  

---
Kevin Atkinson
[EMAIL PROTECTED]
http://metalab.unc.edu/kevina/

Reply via email to