ghc-pkg can't build GHCi libs in Windows Command Prompt

Simon Marlow simonmar at microsoft.com
Wed May 5 16:16:15 EDT 2004


On 04 May 2004 19:54, Krasimir Angelov wrote:

>    In the current implementation of the ghc-pkg util
> it is impossible to build GHCi libs if you don't have
> ld in the current search path. Under Windows the
> compiler usually comes with its own linker
> (ghc-lib/ld.exe). Why doesn't ghc-pkg use the own
> linker? If there isn't any reason not to do that I
> would like to apply the patch:
> 
> 374a375,379
>> #ifdef mingw32_HOST_OS
>>   execDir <- getExecDir "/bin/ghc-pkg.exe"
>>   system (maybe "" (++"/gcc-lib/") execDir++"ld -r -x -o " ++
>> ghci_lib_file ++ 
> 
>>        " --whole-archive " ++ batch_lib_file)
>> #else
> 376a382
>> #endif

Please go ahead and apply this patch.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list