csmith: fix build with explicit std

This commit is contained in:
Stanisław Pitucha 2024-04-18 10:37:01 +10:00
parent 4e3275f6f1
commit ee55a72b1d
1 changed files with 2 additions and 0 deletions

View File

@ -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} \