> I am using ghc-pkg on SunOS4 and get the following behavior
> when using 'ghc-pkg -g':
> 
> >>>
> ld: illegal option -- x
> ld: illegal option -- -
> ld: illegal option -- w
> ld: illegal option -- x
> ld: illegal option -- -
> ld: illegal option -- w
> <<<

The relevant line from ghc-pkg is:

  system("ld -r -x -o " ++ ghci_lib_file ++ 
         " --whole-archive " ++ batch_lib_file)

which is completely non-portable; neither the -x option nor the
--whole-archive option could be considered "standard".  However, fixing
this properly might be more trouble than it's worth.  Unless your ld
supports --whole-archive, there's no easy way to do this, I think.  You
need to break out all the .o files from the archive first, and then use
'ld -r' to build a new .o file from the bits.

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to