Skip to content

Commit

Permalink
Force building with ghc-9.6.5
Browse files Browse the repository at this point in the history
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.

A fix[1] for this has landed in ghc 9.6.5 on 2024-04-16, and ghc's
installed using the current ghcup HEAD (starting with 7a684ad[2]) will
have `--disable-ld-override` passed, which also fixes the issue.

[1] - https://gitlab.haskell.org/ghc/ghc/-/issues/24565
[2] - haskell/ghcup-hs#1032
  • Loading branch information
hseg committed May 2, 2024
1 parent a4caf65 commit 43e5c55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ EOF

prepare() {
cd "$pkgname"
stack config set resolver lts-22.13 # ghc-9.6.4
stack config set resolver lts-22.19 # ghc-9.6.4
echo 'compiler: ghc-9.6.5' >> stack.yaml

_bumpVer Cabal 3.10.3.0 # 3.12.0.0
_bumpVer Cabal-syntax 3.10.3.0 # 3.12.0.0
_bumpVer texmath 0.12.8.8
_bumpVer typst 0.5.0.3
_bumpVer typst-symbols 0.1.6
Expand Down

0 comments on commit 43e5c55

Please sign in to comment.