Merge #243478: haskell.compiler.ghc962: fix build on Darwin

...after stdenv rework merge; merge into staging-next
This commit is contained in:
Vladimír Čunát 2023-07-15 19:50:24 +02:00
commit 4e5bdca687
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -385,6 +385,12 @@ stdenv.mkDerivation ({
"--enable-dwarf-unwind"
"--with-libdw-includes=${lib.getDev elfutils}/include"
"--with-libdw-libraries=${lib.getLib elfutils}/lib"
] ++ lib.optionals targetPlatform.isDarwin [
# Darwin uses llvm-ar. GHC will try to use `-L` with `ar` when it is `llvm-ar`
# but it doesnt currently work because Cabal never uses `-L` on Darwin. See:
# https://gitlab.haskell.org/ghc/ghc/-/issues/23188
# https://github.com/haskell/cabal/issues/8882
"fp_cv_prog_ar_supports_dash_l=no"
];
# Make sure we never relax`$PATH` and hooks support for compatibility.