krb5: Add staticOnly flag
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
# Extra Arguments
|
# Extra Arguments
|
||||||
, type ? ""
|
, type ? ""
|
||||||
|
# This is called "staticOnly" because krb5 does not support
|
||||||
|
# builting both static and shared, see below.
|
||||||
|
, staticOnly ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -22,6 +25,9 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
configureFlags = [ "--with-tcl=no" "--localstatedir=/var/lib"]
|
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=""''
|
++ optional stdenv.isFreeBSD ''WARN_CFLAGS=""''
|
||||||
++ optionals (stdenv.buildPlatform != stdenv.hostPlatform)
|
++ optionals (stdenv.buildPlatform != stdenv.hostPlatform)
|
||||||
[ "krb5_cv_attr_constructor_destructor=yes,yes"
|
[ "krb5_cv_attr_constructor_destructor=yes,yes"
|
||||||
|
|||||||
Reference in New Issue
Block a user