|
![](/i/fill.gif) |
>>>> Now, how much do you want to bet that a non-trivial program compiled
>>>> on one Unix box won't run on another Unix box? :-/
>>>
>>> If the library requirements are met, it'll run.
>>>
>>> If they aren't, then it won't.
>>
>> Trouble is, a typical Haskell program compiled with GHC has a vast list
>> of dependencies. (Off the top of my head, GMP, ncurses, libffi...)
>>
>> Without shell access, it's going to be fun trying to fake that lot.
>
> Doesn't ghc provide a static linking option?
By default, GHC statically links all *Haskell* libraries. However, it
usually does not statically link *external* libraries, as far as I can
tell. Perhaps there's a switch somewhere to make it do that...
(And then, of course, we get into the fun of deciding which libraries
should or should not be statically linked. E.g., apparently statically
linking glibc is a bad idea.)
Post a reply to this message
|
![](/i/fill.gif) |