ngtcp2: fix cygwin build (#470896)

This commit is contained in:
John Ericson
2025-12-15 04:49:09 +00:00
committed by GitHub
@@ -39,8 +39,10 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [
# The examples try to link against `ngtcp2_crypto_ossl` and `ngtcp2` libraries.
# This works in the dynamic case where the targets have the same name, but not here where they're suffixed with `_static`.
# Also, the examples depend on Linux-specific APIs, so we avoid them on FreeBSD too.
(lib.cmakeBool "ENABLE_LIB_ONLY" (stdenv.hostPlatform.isStatic || stdenv.hostPlatform.isFreeBSD))
# Also, the examples depend on Linux-specific APIs, so we avoid them on FreeBSD/Cygwin too.
(lib.cmakeBool "ENABLE_LIB_ONLY" (
stdenv.hostPlatform.isStatic || stdenv.hostPlatform.isFreeBSD || stdenv.hostPlatform.isCygwin
))
(lib.cmakeBool "ENABLE_SHARED_LIB" (!stdenv.hostPlatform.isStatic))
(lib.cmakeBool "ENABLE_STATIC_LIB" stdenv.hostPlatform.isStatic)
];