From 0337bdc8218b40f497ea9d7cfbf56d72d1ef3bc3 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Sun, 3 Apr 2016 15:37:45 +0300 Subject: [PATCH] Add missed library dependencies on Linux and Solaris. --- lib/posix/posix.nim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index f1344f20d7..e932d2845a 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -35,6 +35,15 @@ const hasSpawnH = not defined(haiku) # should exist for every Posix system nowadays hasAioH = defined(linux) +when defined(linux): + # On Linux: + # timer_{create,delete,settime,gettime}, + # clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt + {.passL: "-lrt".} +when defined(solaris): + # On Solaris hstrerror lives in libresolv + {.passL: "-lresolv".} + when false: const C_IRUSR = 0c000400 ## Read by owner.