Subject: Re: py-postgresql package
To: D'Arcy J.M. Cain <darcy@druid.net>
From: None <mcmahill@mtl.mit.edu>
List: tech-pkg
Date: 02/24/2000 17:25:55
On Thu, 24 Feb 2000, D'Arcy J.M. Cain wrote:

> Thus spake mcmahill@mtl.mit.edu
> > > Check it out.  http://www.druid.net/darcy/databases.py-postgresql.txt.
> > 
> > so what's LDSHARED set to in /usr/pkg/lib/python1.5/config/Makefile?  On
> > my system its "ld -Bshareable".
> 
> LDSHARED=   cc -shared
> 
> So now we know that we are looking for something in the Python build,
> not the PyGreSQL build.
> 
> Aha!
> 
>     NetBSD*)
>         if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
>         then
>             LDSHARED="cc -shared"
>         else
>             LDSHARED="ld -Bshareable"
>         fi;;
> 
> Hmm.  I know I have built this package on a.out systems.  Oh well, we
> have the answer.  I'll go make the change to the PyGreSQL package.

well, so there we have it.  So whats wrong with either just

LDSHARED="cc -shared" for both or
"cc -Wl,-Bshareable" for a.out?

that way PyGreSQL should work just fine with "-Wl,-Rpath"

-Dan