From 921509bb519941196d864b25374e07bf915fe56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?rich=CE=9Brd?= Date: Thu, 23 May 2024 10:05:53 -0400 Subject: [PATCH] fix: use `when` instead of `if` for adding soname on linux (#2721) --- library/libwaku.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/libwaku.nim b/library/libwaku.nim index 3acb1c7b2..c1e4ca4f0 100644 --- a/library/libwaku.nim +++ b/library/libwaku.nim @@ -2,7 +2,7 @@ {.pragma: callback, cdecl, raises: [], gcsafe.} {.passc: "-fPIC".} -if defined(linux): +when defined(linux): {.passl: "-Wl,-soname,libwaku.so".} import std/[json, sequtils, atomics, times, strformat, options, atomics, strutils, os]