From bef09dcca11163f030608eaa2577ce9f52a8324b Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 17 Oct 2017 17:05:19 -0400 Subject: [PATCH] krb5: Allow cross-compilation --- pkgs/development/libraries/kerberos/krb5.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/kerberos/krb5.nix b/pkgs/development/libraries/kerberos/krb5.nix index 101c3aca07d..98073b7bbdc 100644 --- a/pkgs/development/libraries/kerberos/krb5.nix +++ b/pkgs/development/libraries/kerberos/krb5.nix @@ -22,7 +22,12 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; configureFlags = [ "--with-tcl=no" "--localstatedir=/var/lib"] - ++ optional stdenv.isFreeBSD ''WARN_CFLAGS=""''; + ++ optional stdenv.isFreeBSD ''WARN_CFLAGS=""'' + ++ optionals (stdenv.buildPlatform != stdenv.hostPlatform) + [ "krb5_cv_attr_constructor_destructor=yes,yes" + "ac_cv_func_regcomp=yes" + "ac_cv_printf_positional=yes" + ]; nativeBuildInputs = [ pkgconfig perl ] ++ optional (!libOnly) yacc