Skip to content

Commit

Permalink
xar: fix build on GCC14
Browse files Browse the repository at this point in the history
  • Loading branch information
amarshall committed Dec 28, 2024
1 parent 634fd46 commit b3604be
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions pkgs/by-name/xa/xar/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,17 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = [ autoreconfHook ];

# For some reason libxml2 package headers are in subdirectory and thus aren’t
# picked up by stdenv’s C compiler wrapper (see ccWrapper_addCVars). This
# doesn’t really belong here and either should be part of libxml2 package or
# libxml2 in Nixpkgs can just fix their header paths.
env.NIX_CFLAGS_COMPILE = "-isystem ${libxml2.dev}/include/libxml2";
env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " ([
# For some reason libxml2 package headers are in subdirectory and thus aren’t
# picked up by stdenv’s C compiler wrapper (see ccWrapper_addCVars). This
# doesn’t really belong here and either should be part of libxml2 package or
# libxml2 in Nixpkgs can just fix their header paths.
"-isystem ${libxml2.dev}/include/libxml2"
] ++ lib.optionals stdenv.cc.isGNU [
# fix build on GCC 14
"-Wno-error=implicit-function-declaration"
"-Wno-error=incompatible-pointer-types"
]);

buildInputs =
[
Expand Down

0 comments on commit b3604be

Please sign in to comment.