[Top][All Lists]

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

Re: postdeps empty on OpenBSD

From: Olly Betts
Subject: Re: postdeps empty on OpenBSD
Date: Wed, 21 Sep 2005 22:00:30 +0100
User-agent: Mutt/1.3.28i

On Wed, Sep 21, 2005 at 10:45:40PM +0200, Ralf Wildenhues wrote:
> * Thorsten Glaser wrote on Wed, Sep 21, 2005 at 10:05:53PM CEST:
> > Olly Betts dixit:
> > >It looks like the problem is that "g++ -shared" doesn't link to libstdc++.
> > 
> > gcc -shared creates a shared library.
> > 
> > On OpenBSD, shared libraries do not link against other shared libraries.
> > The main programme must link against all these.

Does that apply when using dlopen?

When python dlopens, something automatically knows to
load too - so there's definitely a working shared
library dependency mechanism in this case.

The bottom line for me is that if I explicitly add "-lstdc++" when
linking, it all works.  If I don't, it doesn't.  So I
kind of feel that ideally libtool should be doing that for me...

> OK, but this is exactly one thing libtool was designed to do for you:
> keep track of the libraries you also have to link against; it should
> have added -lstdc++ to's dependency_libs.

It definitely isn't doing that.  This is what I have in

dependency_libs=' /home/olly/install/lib/'

But unless python uses ltdl that wouldn't help me here anyway.


reply via email to

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