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

Re: C++ transition stumbling blocks?



On Sun, 2003-02-02 at 18:20, Andreas Rottmann wrote:

> Scott James Remnant <scott@netsplit.com> writes:
> 
> > On Thu, 2003-01-30 at 17:02, Matt Zimmerman wrote:
> > 
> > > On Thu, Jan 30, 2003 at 12:44:17PM +0900, Miles Bader wrote:
> > > 
> > > > Scott James Remnant <scott@netsplit.com> writes: > > Can you
> > > > tell it to not use/produce shared libraries at all (e.g., just >
> > > > > use traditional static libraries)?
> > > > >
> > > > > If you're using libtool from within automake:
> > > > > 
> > > > > lib_LTLIBRARIES = libhello.la
> > > > > libhello_la_LDFLAGS = -static
> > > > 
> > > > Actually I think the problem was that the package I had problems with
> > > > had been distributed with a very old version of libtool; after updating
> > > > to something more recent, I can use the --disable-shared and --enable-static
> > > > configure switches to get what I want.
> > > 
> > > Speaking of which...is there any way to force building only a shared
> > > library, without using --disable-static?  flac, for example, builds both a
> > > normal shared library (shared and static versions) and a plugin (which makes
> > > no sense static, and would be a pain to link statically).  Currently, it
> > > uses separate libtools to build the two libraries, which seems silly.
> > > 
> > In your configure.in put
> > 
> > AC_DISABLE_STATIC
> > 
> You seem to lack understanding what the problem is: how to disable
> static building for a *specific* library (e.g plugin), not all in the
> project.
> 
Oh, sorry! :)

I assumed the only libraries you were building with libtool were your
plugins.

Apart from using a separate libtool, there isn't.  There's no equivalent
of "-static" like "-shared".  Unless "libtool" itself is generated by a
configure with --disable-static/AC_DISABLE_STATIC, it'll always generate
a static library as well.

This is true of CVS libtool too.

Scott
-- 
Scott James Remnant     Have you ever, ever felt like this?  Had strange
http://netsplit.com/      things happen?  Are you going round the twist?

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: