File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,22 @@ if [ "$(getconf LONG_BIT)" = "32" -o "${PLATFORM:=xxx}" = "x86_64-linux-centos7"
34
34
echo ' constraints: lukko -ofd-locking' >> cabal.project.release.local
35
35
fi
36
36
37
+ # In February 2024, cabal started using zlib-0.7.0.0, which uses pkg-config by
38
+ # default. The GitLab CI environment doesn't (yet) supply pkg-config, and zlib
39
+ # does just fine without it on modern GHCs. That said, the CI environment
40
+ # probably *should* have pkg-config installed. See
41
+ # https://github.com/haskell/cabal/issues/9774.
42
+ echo ' constraints: zlib -pkg-config' >> cabal.project.release.local
43
+ # Furthermore, on Windows, zlib claims that libz is shipped with GHC, so it just
44
+ # uses @extra-libraries: z@ if pkg-config is False. If you are reading this
45
+ # comment, however, this didn't work. Thus we switch to using the bundled libz,
46
+ # as was done in zlib <0.7.0.0.
47
+ case " $( uname) " in
48
+ MSYS_* |MINGW* )
49
+ echo ' constraints: zlib +bundled-c-zlib' >> cabal.project.release.local
50
+ ;;
51
+ esac
52
+
37
53
args=(
38
54
--disable-profiling
39
55
--enable-executable-stripping
You can’t perform that action at this time.
0 commit comments