Skip to content

Commit 70ca403

Browse files
committed
openssl(_3): enable KTLS only on Linux
This fixes build on *-darwin.
1 parent d6b8789 commit 70ca403

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkgs/development/libraries/openssl/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ let
130130
"-DUSE_CRYPTODEV_DIGESTS"
131131
] ++ lib.optional enableSSL2 "enable-ssl2"
132132
++ lib.optional enableSSL3 "enable-ssl3"
133-
++ lib.optional (lib.versionAtLeast version "3.0.0") "enable-ktls"
133+
# We select KTLS here instead of the configure-time detection (which we patch out).
134+
# KTLS should work on FreeBSD 13+ as well, so we could enable it if someone tests it.
135+
++ lib.optional (stdenv.isLinux && lib.versionAtLeast version "3.0.0") "enable-ktls"
134136
++ lib.optional (lib.versionAtLeast version "1.1.1" && stdenv.hostPlatform.isAarch64) "no-afalgeng"
135137
# OpenSSL needs a specific `no-shared` configure flag.
136138
# See https://wiki.openssl.org/index.php/Compilation_and_Installation#Configure_Options

0 commit comments

Comments
 (0)