aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/kerberos
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-10-17 17:05:19 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-09 11:23:56 -0500
commitbef09dcca11163f030608eaa2577ce9f52a8324b (patch)
tree0a7d53b12339614c407573aa66ca0a885362ab80 /pkgs/development/libraries/kerberos
parent681555c11c75337462703c5a2f936fd28ff82e20 (diff)
krb5: Allow cross-compilation
Diffstat (limited to 'pkgs/development/libraries/kerberos')
-rw-r--r--pkgs/development/libraries/kerberos/krb5.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/kerberos/krb5.nix b/pkgs/development/libraries/kerberos/krb5.nix
index 101c3aca07d3..98073b7bbdc4 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