diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-01-13 20:03:29 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-01-24 21:18:39 +0000 |
commit | 2ae30c9f45a82bae0e8a41be1ff75858801765ce (patch) | |
tree | 247eecd38746382a154e8f47e89cae2f63e487b0 /pkgs/stdenv/darwin | |
parent | c672de30802d685811fd2ea4eaf95d7dceda2f05 (diff) | |
download | nixpkgs-2ae30c9f45a82bae0e8a41be1ff75858801765ce.tar nixpkgs-2ae30c9f45a82bae0e8a41be1ff75858801765ce.tar.gz nixpkgs-2ae30c9f45a82bae0e8a41be1ff75858801765ce.tar.bz2 nixpkgs-2ae30c9f45a82bae0e8a41be1ff75858801765ce.tar.lz nixpkgs-2ae30c9f45a82bae0e8a41be1ff75858801765ce.tar.xz nixpkgs-2ae30c9f45a82bae0e8a41be1ff75858801765ce.tar.zst nixpkgs-2ae30c9f45a82bae0e8a41be1ff75858801765ce.zip |
llvmPackages: use libcxxrt on FreeBSD
FreeBSD doesn't use LLVM's cxxabi implementation, for backwards compatibility reasons. Software expects the libcxxrt API when building on FreeBSD. This fixes the build of pkgsCross.x86_64-freebsd.boost.
Diffstat (limited to 'pkgs/stdenv/darwin')
-rw-r--r-- | pkgs/stdenv/darwin/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 113aa946276..2ee8c070ae1 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -339,6 +339,7 @@ rec { ''; passthru = { isLLVM = true; + cxxabi = self."${finalLlvmPackages}".libcxxabi; }; }; @@ -348,6 +349,9 @@ rec { mkdir -p $out/lib ln -s ${bootstrapTools}/lib/libc++abi.dylib $out/lib/libc++abi.dylib ''; + passthru = { + libName = "c++abi"; + }; }; compiler-rt = stdenv.mkDerivation { |