Merge #266878: haskell-modules/generic-builder.nix: set NIX_LDFLAGS top-level

...into staging-next
This commit is contained in:
Vladimír Čunát 2023-11-14 07:36:14 +01:00
commit b68f7e4ca4
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -822,7 +822,7 @@ stdenv.mkDerivation ({
# Works around https://github.com/NixOS/nixpkgs/issues/166205.
# This can be dropped once a fix has been committed to cc-wrapper.
// lib.optionalAttrs (stdenv.cc.isClang && stdenv.cc.libcxx != null) {
env.NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
}
)
)