From ee55a72b1dc96375e63c249f62508760f8e5b313 Mon Sep 17 00:00:00 2001 From: Stanisław Pitucha Date: Thu, 18 Apr 2024 10:37:01 +1000 Subject: csmith: fix build with explicit std --- pkgs/development/tools/misc/csmith/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/development/tools') diff --git a/pkgs/development/tools/misc/csmith/default.nix b/pkgs/development/tools/misc/csmith/default.nix index 0643e81edf999..5371f88c0a87b 100644 --- a/pkgs/development/tools/misc/csmith/default.nix +++ b/pkgs/development/tools/misc/csmith/default.nix @@ -12,6 +12,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ m4 makeWrapper ]; buildInputs = [ libbsd ] ++ (with perlPackages; [ perl SysCPU ]); + CXXFLAGS = "-std=c++98"; + postInstall = '' substituteInPlace $out/bin/compiler_test.pl \ --replace '$CSMITH_HOME/runtime' $out/include/${pname}-${version} \ -- cgit 1.4.1