[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compiling a dynamic executable



Hi Jens!

I don't have ghc-7.6 at hand at the moment, but yes I'm using
TemplateHaskell, so I think this is the reason for the error. Thanks
pointing it out!

On Mon, Mar 25, 2013 at 5:45 AM, Jens Petersen
<juhp@community.haskell.org> wrote:
> Hi Markus, just saw your question - maybe you already got an answer?
>
>> xxx.hs:1:1:
>>     Dynamic linking required, but this is a non-standard build (eg. prof).
>>     You need to build the program twice: once the normal way, and then
>>     in the desired way using -osuf to set the object file suffix.
>
> My guess is you're linking with Template Haskell?
>
> Then in this case ghc-7.4 Cabal needs to be patched:
>
> http://pkgs.fedoraproject.org/cgit/ghc.git/tree/Cabal-fix-dynamic-exec-for-TH.patch
>
> I believe this is already fixed in ghc-7.6.
>
> Hope that helps,
>
> Jens



-- 
Markus Läll


Reply to: