POV-Ray : Newsgroups : povray.off-topic : Just ask Google : Re: Just ask Unix Server Time
29 Jul 2024 10:31:04 EDT (-0400)
  Re: Just ask Unix  
From: Orchid Win7 v1
Date: 19 Jul 2012 13:57:17
Message: <50084a7d$1@news.povray.org>
>>>> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.