Unverified Commit a61f67d8 authored by Pavol Rusnak's avatar Pavol Rusnak
Browse files

suitesparse: fix build with GCC14

parent d95226c4
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -93,7 +93,13 @@ effectiveStdenv.mkDerivation rec {
      "LAPACK=-llapack"
    ];

  env = lib.optionalAttrs effectiveStdenv.hostPlatform.isDarwin {
  env =
    {
      # in GCC14 these two warnings were promoted to error
      # let's make them warnings again to fix the build failure
      NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types";
    }
    // lib.optionalAttrs effectiveStdenv.hostPlatform.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";