Compiling on OpenBSD-current
ben at smart-cactus.org
Thu Dec 1 15:33:25 UTC 2016
Reid Barton <rwbarton at gmail.com> writes:
> https://phabricator.haskell.org/D2673 is responsible. It adds
> CONF_LD_LINKER_OPTS_STAGE0 to $1_$2_$3_ALL_LD_OPTS, which is
> documented as "Options for passing to plain ld", which is okay. But
> just below that the same variable $1_$2_$3_ALL_LD_OPTS is added (with
> -optl prefixes attached) to $1_$2_$3_GHC_LD_OPTS ("Options for passing
> to GHC when we use it for linking"), which is wrong because GHC uses
> gcc to do the link, not ld.
Great catch Reid and thanks for the report Adam! I have setup an OpenBSD
VM and have reproduced the issue.
Following Reid's logic I have proposed D2776 as a fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 454 bytes
Desc: not available
More information about the ghc-devs