libgee, libgda, zile: fix compiling with clang (#341109)
This commit is contained in:
@@ -39,6 +39,8 @@ stdenv.mkDerivation rec {
|
||||
# fiddle with the terminal.
|
||||
doCheck = false;
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
|
||||
|
||||
# XXX: Work around cross-compilation-unfriendly `gl_FUNC_FSTATAT' macro.
|
||||
gl_cv_func_fstatat_zero_flag="yes";
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ stdenv.mkDerivation rec {
|
||||
postgresql
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs \
|
||||
providers/raw_spec.py \
|
||||
|
||||
@@ -82,6 +82,8 @@ stdenv.mkDerivation rec {
|
||||
"--enable-system-sqlite=${if stdenv.isDarwin then "no" else "yes"}"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
@@ -34,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
doCheck = true;
|
||||
|
||||
env = {
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
|
||||
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${placeholder "dev"}/share/gir-1.0";
|
||||
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${placeholder "out"}/lib/girepository-1.0";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user