libfaketime: use CFLAGS instead of NIX_CFLAGS_COMPILE

pkgsLLVM.libfaketime wouldn't link both before or after this change,
but pkgsCross.loongarch64-linux.libfaketime would and gave the same output
after `nix store make-content-addressed` before and after this change.
This commit is contained in:
SandaruKasa 2026-06-13 02:01:14 +03:00
commit e2464bbe59

View file

@ -55,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: {
env = {
PREFIX = placeholder "out";
LIBDIRNAME = "/lib";
NIX_CFLAGS_COMPILE = toString (
CFLAGS = toString (
lib.optionals stdenv.cc.isClang [
"-Wno-error=cast-function-type"
"-Wno-error=format-truncation"