From dcb06064e0b27d00b436545d6b21cc24155f6c2e Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Wed, 25 Dec 2024 21:54:57 +0100 Subject: [PATCH] pcmsolver: fix build with gcc-14 --- pkgs/by-name/pc/pcmsolver/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/pc/pcmsolver/package.nix b/pkgs/by-name/pc/pcmsolver/package.nix index 7572e14c3dfd2..3f4ffd2bd9a97 100644 --- a/pkgs/by-name/pc/pcmsolver/package.nix +++ b/pkgs/by-name/pc/pcmsolver/package.nix @@ -42,6 +42,9 @@ stdenv.mkDerivation rec { zlib ]; + # Required for build with gcc-14 + env.NIX_CFLAGS_COMPILE = "-std=c++14"; + cmakeFlags = [ "-DENABLE_OPENMP=ON" ]; hardeningDisable = [ "format" ];