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 17:08:42 -08:00
parent cfc3698c31
commit 40a19c1d47
No known key found for this signature in database
GPG Key ID: 9C504E488834D0C0

View File

@ -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"