diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-13 08:30:44 -0500 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-14 08:23:30 -0500 |
commit | 209591e7c78e025c50643c20aae06c4a5fbffeba (patch) | |
tree | 6d3831abc7e7e549ff22bdfa75f0294c3ed35ea7 /pkgs/development/libraries | |
parent | c1eb661271bf5c3e0baa7b32ebd9d455883d95d0 (diff) | |
download | nixpkgs-209591e7c78e025c50643c20aae06c4a5fbffeba.tar nixpkgs-209591e7c78e025c50643c20aae06c4a5fbffeba.tar.gz nixpkgs-209591e7c78e025c50643c20aae06c4a5fbffeba.tar.bz2 nixpkgs-209591e7c78e025c50643c20aae06c4a5fbffeba.tar.lz nixpkgs-209591e7c78e025c50643c20aae06c4a5fbffeba.tar.xz nixpkgs-209591e7c78e025c50643c20aae06c4a5fbffeba.tar.zst nixpkgs-209591e7c78e025c50643c20aae06c4a5fbffeba.zip |
suitesparse: fix build on x86_64-darwin
SuitesParse can fail to build on x86_64-darwin if there is not enough space in its dylibs to change their install names to absolute paths. Ensure there is by passing `-headerpad_max_install_names` to the linker.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/science/math/suitesparse/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/science/math/suitesparse/default.nix b/pkgs/development/libraries/science/math/suitesparse/default.nix index 67dfef186e7..dd2eb9478f7 100644 --- a/pkgs/development/libraries/science/math/suitesparse/default.nix +++ b/pkgs/development/libraries/science/math/suitesparse/default.nix @@ -60,6 +60,12 @@ stdenv.mkDerivation rec { ] ; + env = lib.optionalAttrs stdenv.isDarwin { + # Ensure that there is enough space for the `fixDarwinDylibNames` hook to + # update the install names of the output dylibs. + NIX_LDFLAGS = "-headerpad_max_install_names"; + }; + buildFlags = [ # Build individual shared libraries, not demos "library" |