Re: specifying an ELF soname when linking shared libs

2009-05-14 Thread Duncan Coutts
On Thu, 2009-05-14 at 09:15 +0100, Simon Marlow wrote: > On 13/05/2009 19:54, Duncan Coutts wrote: > > Shared libs enthusiasts, > > > > We can use ghc to link a bunch of .o files into a shared lib: > > > > $ ghc -dynamic -shared Blah.o -o libHSblah.so > > > > The question on ELF platforms is how we

Re: specifying an ELF soname when linking shared libs

2009-05-14 Thread Simon Marlow
On 13/05/2009 19:54, Duncan Coutts wrote: Shared libs enthusiasts, We can use ghc to link a bunch of .o files into a shared lib: $ ghc -dynamic -shared Blah.o -o libHSblah.so The question on ELF platforms is how we should set the "soname". This name is name baked into the .so lib and used to i

Re: specifying an ELF soname when linking shared libs

2009-05-13 Thread Duncan Coutts
On Wed, 2009-05-13 at 20:35 +0100, Neil Mitchell wrote: > Hi > > > With gcc, on ELF platforms you would use: > > > > $ gcc -shared Blah.o -o libblah.so -Wl,-soname,libblah.so > > > > We could require (or at least suggest) -package-name be given when > > linking a shared lib. However that would inv

Re: specifying an ELF soname when linking shared libs

2009-05-13 Thread Neil Mitchell
Hi > With gcc, on ELF platforms you would use: > > $ gcc -shared Blah.o -o libblah.so -Wl,-soname,libblah.so > > We could require (or at least suggest) -package-name be given when > linking a shared lib. However that would involve baking in the "HS" > library prefix name convention into ghc. > > O

specifying an ELF soname when linking shared libs

2009-05-13 Thread Duncan Coutts
Shared libs enthusiasts, We can use ghc to link a bunch of .o files into a shared lib: $ ghc -dynamic -shared Blah.o -o libHSblah.so The question on ELF platforms is how we should set the "soname". This name is name baked into the .so lib and used to identify the library by the dynamic linker (t