haskell.compiler.ghc962: fix build on Darwin after stdenv rework merge
The switch to cctools-llvm made several LLVM tools the default on Darwin, which includes llvm-ar. GHC will try to use `-L` with `ar` when it is `llvm-ar`, but that doesn’t work currently on Darwin. See https://gitlab.haskell.org/ghc/ghc/-/issues/23188.
This commit is contained in:
parent
03bf9ffd85
commit
6454fb1bc0
1 changed files with 6 additions and 0 deletions
|
@ -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 doesn’t 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.
|
||||
|
|
Loading…
Reference in a new issue