diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-10-17 17:05:19 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-01-09 11:23:56 -0500 |
commit | bef09dcca11163f030608eaa2577ce9f52a8324b (patch) | |
tree | 0a7d53b12339614c407573aa66ca0a885362ab80 /pkgs/development/libraries/kerberos | |
parent | 681555c11c75337462703c5a2f936fd28ff82e20 (diff) | |
download | nixlib-bef09dcca11163f030608eaa2577ce9f52a8324b.tar nixlib-bef09dcca11163f030608eaa2577ce9f52a8324b.tar.gz nixlib-bef09dcca11163f030608eaa2577ce9f52a8324b.tar.bz2 nixlib-bef09dcca11163f030608eaa2577ce9f52a8324b.tar.lz nixlib-bef09dcca11163f030608eaa2577ce9f52a8324b.tar.xz nixlib-bef09dcca11163f030608eaa2577ce9f52a8324b.tar.zst nixlib-bef09dcca11163f030608eaa2577ce9f52a8324b.zip |
krb5: Allow cross-compilation
Diffstat (limited to 'pkgs/development/libraries/kerberos')
-rw-r--r-- | pkgs/development/libraries/kerberos/krb5.nix | 7 |
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 |