Unverified Commit 209591e7 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

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.
parent c1eb6612
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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"