Building with recent binutils require --no-pie

Alan & Kim Zimmerman alan.zimm at gmail.com
Fri Nov 4 07:10:24 UTC 2016


Hi all

For anyone building on Debian testing or similar and getting linker
failures, there is currently a workaround in progress by Ben Gamari that
can be used.

It is based on first applying  D2672, D2673, and D2674 and then configuring
with

./configure \
  CONF_CC_OPTS_STAGE2=-fno-PIE \
  CONF_GCC_LINKER_OPTS_STAGE2=-no-pie \
  CONF_LD_LINKER_OPTS_STAGE2=-no-pie \
  CONF_CC_OPTS_STAGE0=-no-pie \
  CONF_GCC_LINKER_OPTS_STAGE0=-no-pie \
  CONF_LD_LINKER_OPTS_STAGE0=-no-pie \
  CONF_HC_OPTS_STAGE0=-optl=-no-pie

See https://gist.github.com/alanz/570eb6f1c0ae7e989f493f1b69904c28 for a
more legible version.

Regards
  Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20161104/9cab3d78/attachment.html>


More information about the ghc-devs mailing list