Skip to content

Commit e940f49

Browse files
committed
faq update: ld errors about recompiling with -fPIC
1 parent 6792089 commit e940f49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

doc/faq.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ VER/settings` (replace `VER` with the GHC version) and adding `-no-pie` (or
422422
`--no-pie` in the case of Gentoo, at least as of December 2017) to the __C
423423
compiler link flags__.
424424
425+
If `stack setup` complains that there is no `linuxNN-*-nopie` bindist available,
426+
try adding `ghc-build: *` (replacing the `*` with the actual value that
427+
precedes `-nopie`, which may be empty) to your `~/.stack/config.yaml` (this
428+
will no longer be necessary for stack >= 1.7).
429+
425430
If you are experiencing this with GHC >= 8.0.2, try running `stack setup
426431
--reinstall` if you've upgraded your Linux distribution or you set up GHC
427432
before late December 2017.

0 commit comments

Comments
 (0)