ngtcp2: fix cygwin build

This commit is contained in:
David McFarland
2025-12-14 21:57:53 -04:00
parent 0fdcb958d3
commit 4166a4e4f8
@@ -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)
];