The default makepkg configuration sets LDFLAGS but not LD. GHC used to take this as its cue to select its own choice of LD. However GHC would not check that its choice of LD supports LDFLAGS. This is a problem for dependencies with C components, which get linked using this LD.
Starting with ghc 9.6.5 (2024-04-16), one can build this behaviour out of
ghc[1]. ghcup
has picked up this configuration for its bindists[2], and is to
my knowledge the only bindist fixing this -- my recommendation is to use its
ghc
to build the package.
[1] - https://gitlab.haskell.org/ghc/ghc/-/issues/24565 [2] - https://github.com/haskell/ghcup-hs/issues/1033
Pinned Comments
gesh commented on 2024-12-04 16:41 (UTC)
The default makepkg configuration sets LDFLAGS but not LD. GHC used to take this as its cue to select its own choice of LD. However GHC would not check that its choice of LD supports LDFLAGS. This is a problem for dependencies with C components, which get linked using this LD.
Starting with ghc 9.6.5 (2024-04-16), one can build this behaviour out of ghc[1].
ghcup
has picked up this configuration for its bindists[2], and is to my knowledge the only bindist fixing this -- my recommendation is to use itsghc
to build the package.[1] - https://gitlab.haskell.org/ghc/ghc/-/issues/24565 [2] - https://github.com/haskell/ghcup-hs/issues/1033