
> > Why are our shared libs called e.g. ecpg.so and not libecpg.so ?
> 
> Uh, they aren't on at least some platforms. Here is the lib directory
> on my linux box:
> 
Ok, sorry I see the difference now. Those that are for linking are named
lib*.so
and those that are for dyn loading into postgres don't have the lib.
Good, thanks. 

Andreas

Fri, 16 Jul 1999 17:55:26 +0200
Zeugswetter Andreas IZ5 <Andreas.Zeugswetter@telecom.at>
AW: [HACKERS] shared lib names
Zeugswetter Andreas IZ5 <Andreas.Zeugswetter@telecom.at> writes:
> Ok, sorry I see the difference now. Those that are for linking are named
> lib*.so
> and those that are for dyn loading into postgres don't have the lib.

What?  They should all have the "lib" AFAIK --- dynamic loading takes
the same kind of shared lib as a regular link does on every platform
I've heard about.

I think you were just fooled by having misspelled the "shlib" variable
the first time around... or, perhaps, our dynlink support for aix
is confused too?

			regards, tom lane

Fri, 16 Jul 1999 13:14:19 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: AW: [HACKERS] shared lib names 
Tom Lane wrote:
> 
> Zeugswetter Andreas IZ5 <Andreas.Zeugswetter@telecom.at> writes:
> > Ok, sorry I see the difference now. Those that are for linking are named
> > lib*.so
> > and those that are for dyn loading into postgres don't have the lib.
> 
> What?  They should all have the "lib" AFAIK --- dynamic loading takes
> the same kind of shared lib as a regular link does on every platform
> I've heard about.

I don't know about 'should' but they definitely are not required
to have it.

As Andreas said, the reason for the 'lib' prefix is to allow the -l
flag to the linker to work. What you pass to dlopen is the path to the
file, so
it can have any name you want. Generally (may be some platform this
isn't true)
you don't even have to have a magic suffix.


-- 

Mark Hollomon
mhh@nortelnetworks.com
ESN 451-9008 (302)454-9008

Fri, 16 Jul 1999 13:48:48 -0400
"Mark Hollomon" <mhh@nortelnetworks.com>
Re: AW: [HACKERS] shared lib names