libev: Enable cross-build for mingw

This commit is contained in:
Greg Hellings
2026-02-02 22:22:41 -06:00
parent 50ac6eb1c9
commit 25eeefb7d1
+5 -1
View File
@@ -36,7 +36,11 @@ stdenv.mkDerivation rec {
makeFlags =
# doing this in configureFlags causes configure to fail
lib.optional (!static && stdenv.hostPlatform.isCygwin) "LDFLAGS=-no-undefined";
(lib.optional (!static && stdenv.hostPlatform.isCygwin) "LDFLAGS+=-no-undefined")
++ (lib.optionals (!static && stdenv.hostPlatform.isWindows) [
"LDFLAGS+=-no-undefined"
"LDFLAGS+=-lws2_32"
]);
meta = {
description = "High-performance event loop/event model with lots of features";