Compiling ghc with -fPIC support

前端 未结 2 736
情话喂你
情话喂你 2021-01-03 22:29

I\'m trying to install GHC with -fPIC support in Fedora. I\'ve grabbed a source tarball since it seems no binary one has this.

In Build.mk i\'ve changed the quick bu

2条回答
  •  清酒与你
    2021-01-03 23:04

    There's an FAQ entry on this topic on the Haskell Stack page.

    It basically says the problem is environment related and sometimes non-deterministic.

    The issue may be related to the use of hardening flags in some cases, specifically those related to producing position independent executables (PIE).

    There's also a work around suggestion for Arch Linux:

    On Arch Linux, installing the ncurses5-compat-libs package from AUR resolves this issue.

提交回复
热议问题