darcs patch: Generalize linkDynLib for ELF platforms
Clemens Fruhwirth
clemens at endorphin.org
Wed Jun 27 07:06:00 EDT 2007
Wed Jun 27 11:08:19 CEST 2007 Clemens Fruhwirth <clemens at endorphin.org>
* Generalize linkDynLib for ELF platforms
To create a dynamic shared object (DSO) on ELF platforms, we invoke
"gcc -shared". This in turn invokes ld. We supply -Bsymbolic to the
linker, as "ld -Bsymbolic -shared -o <lib> <objs>" resolves all
references from <objs> to <objs> at library creation time.
See http://hackage.haskell.org/trac/ghc/wiki/Commentary/PositionIndependentCode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 23667 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/cvs-ghc/attachments/20070627/2d761cd5/attachment-0001.bin
More information about the Cvs-ghc
mailing list