summary refs log tree commit diff
path: root/pkgs/development/libraries/kerberos
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2018-07-21 04:40:20 +0200
committerNiklas Hambüchen <mail@nh2.me>2018-07-21 04:43:50 +0200
commitbc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486 (patch)
tree5b269f685651ac7bf3e6429653fa881c43ad0ffd /pkgs/development/libraries/kerberos
parentcaccc40ad01c4159a5a627b17d3db12ac67fa252 (diff)
downloadnixpkgs-bc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486.tar
nixpkgs-bc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486.tar.gz
nixpkgs-bc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486.tar.bz2
nixpkgs-bc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486.tar.lz
nixpkgs-bc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486.tar.xz
nixpkgs-bc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486.tar.zst
nixpkgs-bc6cfb47500c56bb1c59462e6b6ccb4fb0ba8486.zip
krb5: Add `staticOnly` flag
Diffstat (limited to 'pkgs/development/libraries/kerberos')
-rw-r--r--pkgs/development/libraries/kerberos/krb5.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/kerberos/krb5.nix b/pkgs/development/libraries/kerberos/krb5.nix
index d705aa3388f..8f9c75c441d 100644
--- a/pkgs/development/libraries/kerberos/krb5.nix
+++ b/pkgs/development/libraries/kerberos/krb5.nix
@@ -3,6 +3,9 @@
 
 # Extra Arguments
 , type ? ""
+# This is called "staticOnly" because krb5 does not support
+# builting both static and shared, see below.
+, staticOnly ? false
 }:
 
 let
@@ -22,6 +25,9 @@ stdenv.mkDerivation rec {
   outputs = [ "out" "dev" ];
 
   configureFlags = [ "--with-tcl=no" "--localstatedir=/var/lib"]
+    # krb5's ./configure does not allow passing --enable-shared and --enable-static at the same time.
+    # See https://bbs.archlinux.org/viewtopic.php?pid=1576737#p1576737
+    ++ optional staticOnly [ "--enable-static" "--disable-shared" ]
     ++ optional stdenv.isFreeBSD ''WARN_CFLAGS=""''
     ++ optionals (stdenv.buildPlatform != stdenv.hostPlatform)
        [ "krb5_cv_attr_constructor_destructor=yes,yes"