openssh: allow building without linking openssl
http://undeadly.org/cgi?action=article&sid=20140430045723 has the original announcement of this option. Note, openssl headers are still required at build time, see this comment: http://www.gossamer-threads.com/lists/openssh/dev/61125#61125
This commit is contained in:
parent
0bf8a1a86d
commit
14201da332
@ -4,6 +4,7 @@
|
|||||||
, withKerberos ? false
|
, withKerberos ? false
|
||||||
, withGssapiPatches ? withKerberos
|
, withGssapiPatches ? withKerberos
|
||||||
, kerberos
|
, kerberos
|
||||||
|
, linkOpenssl? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert withKerberos -> kerberos != null;
|
assert withKerberos -> kerberos != null;
|
||||||
@ -54,7 +55,8 @@ stdenv.mkDerivation rec {
|
|||||||
(if pam != null then "--with-pam" else "--without-pam")
|
(if pam != null then "--with-pam" else "--without-pam")
|
||||||
] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
|
] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
|
||||||
++ optional withKerberos "--with-kerberos5=${kerberos}"
|
++ optional withKerberos "--with-kerberos5=${kerberos}"
|
||||||
++ optional stdenv.isDarwin "--disable-libutil";
|
++ optional stdenv.isDarwin "--disable-libutil"
|
||||||
|
++ optional (!linkOpenssl) "--without-openssl";
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
configureFlagsArray+=("--with-privsep-path=$out/empty")
|
configureFlagsArray+=("--with-privsep-path=$out/empty")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user