gnuchess: unbreak clang build with -std=c++14

register keyword is removed in c++17
This commit is contained in:
annalee 2024-05-07 06:41:37 +00:00
parent 9fb582619d
commit a4e357cec9
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ makeWrapper ];
configureFlags = [
# register keyword is removed in c++17 so stick to c++14
"CXXFLAGS=-std=c++14"
];
postInstall = ''
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"