From 71fca173606a053e67fb8464e4505ffa800f79b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 3 Aug 2026 11:57:46 +0200 Subject: [PATCH] Haiku: linking libbsd for kqueue is moved at the module level (#25960) As noted in https://github.com/nim-lang/Nim/pull/25953#discussion_r3522906057 the linking can be done at the module level, this is thus a partial revert of fa4f9c9759fbb9c82021745425c76bc886d8c805 --- config/nim.cfg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/nim.cfg b/config/nim.cfg index 26948ba928..6a259321fb 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -134,11 +134,11 @@ nimblepath="$home/.nimble/pkgs/" # BSD got posix_spawn only recently, so we deactivate it for osproc: define:useFork @elif haiku: - gcc.options.linker = "-Wl,--as-needed -lnetwork -lbsd" - gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork -lbsd" - clang.options.linker = "-Wl,--as-needed -lnetwork -lbsd" - clang.cpp.options.linker = "-Wl,--as-needed -lnetwork -lbsd" - tcc.options.linker = "-Wl,--as-needed -lnetwork -lbsd" + gcc.options.linker = "-Wl,--as-needed -lnetwork" + gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork" + clang.options.linker = "-Wl,--as-needed -lnetwork" + clang.cpp.options.linker = "-Wl,--as-needed -lnetwork" + tcc.options.linker = "-Wl,--as-needed -lnetwork" @elif not genode: # -fopenmp gcc.options.linker = "-ldl"