buddy: fix clang build

This commit is contained in:
Emily Trau 2023-11-29 13:12:56 +11:00
parent 10ee18ca92
commit aca48610cc

View File

@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
buildInputs = [ bison ];
patches = [ ./gcc-4.3.3-fixes.patch ];
configureFlags = [ "CFLAGS=-O3" "CXXFLAGS=-O3" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=register";
NIX_LDFLAGS = "-lm";
doCheck = true;