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. > > Or we can make the caller specify the soname specifically.
Some people will want the ability to specify the soname directly, so you'll need to provide that functionality. Given a way of specifying the soname directly, everything else is just a guess for when the flag is missing - so I'd be inclined to use the -o flag, or just always require a -soname flag. Doing the package name -> .so mapping in GHC itself seems quite ugly, and lots of people might want to compile .so's outside of cabal or any notion of packages. Thanks Neil _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
