diff options
author | Naïm Favier <n@monade.li> | 2022-11-18 10:29:41 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-11-18 10:29:41 +0100 |
commit | 34e0667b74c5055f81986c759344e3a7de6414c1 (patch) | |
tree | 94b3b8339dc2fbc1033ba471805fd24556c2e3db /pkgs | |
parent | a515239b521fe2fd4b0af5f4b93ef7e540ad5db4 (diff) |
dwarf-fortress.dfhack: use CXXFLAGS instead of NIX_CFLAGS_COMPILE
See https://github.com/NixOS/nixpkgs/issues/79303.
Avoids warnings about -fpermissive not being a valid C flag.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/games/dwarf-fortress/dfhack/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/games/dwarf-fortress/dfhack/default.nix b/pkgs/games/dwarf-fortress/dfhack/default.nix index f54a0e1511df..914ccbb6ab33 100644 --- a/pkgs/games/dwarf-fortress/dfhack/default.nix +++ b/pkgs/games/dwarf-fortress/dfhack/default.nix @@ -125,7 +125,7 @@ in }); # gcc 11 fix - NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionOlder version "0.47.05-r3") "-fpermissive"; + CXXFLAGS = lib.optionalString (lib.versionOlder version "0.47.05-r3") "-fpermissive"; # As of # https://github.com/DFHack/dfhack/commit/56e43a0dde023c5a4595a22b29d800153b31e3c4, |