jam: set std=c89

jam relies on c89 conventions; this restores the ability to build on recent Darwin.
This commit is contained in:
Alexander Lash
2023-12-26 18:32:46 -08:00
parent cfc3698c31
commit 40a19c1d47
@@ -7,6 +7,9 @@ let
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ bison ];
# Jam uses c89 conventions
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-std=c89";
# Jambase expects ar to have flags.
preConfigure = ''
export AR="$AR rc"