Re: Making GHCi object files on MacOS

2003-12-10 Thread George Russell
[EMAIL PROTECTED] wrote (snipped): I don't have such duplicate definitions in my files ... producing a package with ghc-pkg -a works OK for me with Wolfgang Thaller's GHC 6.0.1 build. Is that how you're doing it, or are you trying to produce the GHCi object file manually? I was producing it

Making GHCi object files on MacOS

2003-12-09 Thread George Russell
Section 4.10.3 of the GHC manual tells me to use ld -r --whole-archive to convert a .a file into a .o file suitable for GHCi. However these options only work for GNU ld, which doesn't seem to be available on MacOS (uname -srv gives me Darwin 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55

Re: Making GHCi object files on MacOS

2003-12-09 Thread ozone
On 10/12/2003, at 3:35 AM, George Russell wrote: The equivalent to GNU ld's --whole-archive option on Mac OS X is -all_load. Thank you, that seems to work. Now what should I do to prevent the GHCi linker complaining about duplicate definitions for __module_registered (which seems to be