libtool-patches
[Top][All Lists]
Advanced

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

Re: PATCH: minimal support for --tag in 1.4


From: Gary V . Vaughan
Subject: Re: PATCH: minimal support for --tag in 1.4
Date: Fri, 29 Jun 2001 03:36:50 +0100

On Monday 25 June 2001  9:39 pm, Paolo Bonzini wrote:
> > What about:
> >
> >         $ ./configure --enable-static=foo,bar --disable-shared=baz
>
> No, I reread the manual and ltconfig, and this is not right.  What
> I want to do is to disable shared libraries for a particular *library*,
> not for a *package*.  I want the virtual machine's library to be
> static-only (for speed), and yet be able to build the modules
> (networking, GUI, regex, ...) as shared libraries.

It occurs to me that I needed something like this in m4-1.5.  I have some 
common builtins which need to be compiled into the binary, and some 
occasional (or post-compile) modules which define additional builtins.  In 
the end I compiled all the modules with libtool, bu dlpreopened the standard 
builtins causing the static component of the libtool library to be linked 
into the binary.

This technique has the added advantage of using the same API in the main 
module whether (lt_dl)opening the default startup commands or (lt_dl)opening 
user's add on modules compiled outside the source tree.  I found that I could 
remove whole swathes of code to deal with special startup procedure loading 
when I did this.

Just tossing it in the air incase you find it useful.

Cheers,
        Gary.
-- 
  ())_.  Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/   Research Scientist  http://www.oranda.demon.co.uk        ,_())____
  / )=   GNU Hacker          http://www.gnu.org/software/libtool   \'      `&
`(_~)_   Tech' Author        http://sources.redhat.com/autobook    =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]