Re: [PATCHES] Fix linking of OpenLDAP libraries - Mailing list pgsql-hackers

From Kevin Brown
Subject Re: [PATCHES] Fix linking of OpenLDAP libraries
Date
Msg-id 20060911220409.GF11514@filer
Whole thread Raw
In response to Re: [PATCHES] Fix linking of OpenLDAP libraries  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> "Albe Laurenz" <all@adv.magwien.gv.at> writes:
> > Let me expand a little on some of the peculiarities of
> > shared libraries on AIX:
> 
> > - A normal AIX shared library is called libXX.a
> >   It is an 'ar' archive that contains the shared object(s).
> 
> Ah, so the problem really boils down to funny naming conventions.
> If they use ".a" for both shared and static libraries, how does anyone
> tell the difference?

It sounds to me like there is no difference.  Notice how his example
ldd output shows dependencies on specific .o entries within the
various .a files that reside on the system, rather than on the .a
files as a whole.  If those entries had been statically linked then
they wouldn't have shown up in the ldd output at all.

So the difference is no longer between static libraries and shared
libraries -- they're now just libraries.  The only difference is how
you link to them.

What IBM has done here is very sensible, and is really what the other
Unixes should have done from the beginning: a library is just a
library, and what differs is how it's used.



-- 
Kevin Brown                          kevin@sysexperts.com


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Fixed length data types issue
Next
From: Tom Lane
Date:
Subject: Re: Fixed length data types issue