mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
Works around a niminst bug. Related to commit 3813af63f5 and #4831.
This commit is contained in:
@@ -92,6 +92,7 @@ case $uos in
|
||||
;;
|
||||
*haiku* )
|
||||
myos="haiku"
|
||||
LINK_FLAGS="$LINK_FLAGS -lroot -lnetwork"
|
||||
;;
|
||||
*)
|
||||
echo 2>&1 "Error: unknown operating system: $uos"
|
||||
|
||||
@@ -447,7 +447,8 @@ proc readCFiles(c: var ConfigData, osA, cpuA: int) =
|
||||
# HACK: we conditionally add ``-lm -ldl``, so remove them from the
|
||||
# linker flags:
|
||||
c.linker.flags = c.linker.flags.replaceWord("-lm").replaceWord(
|
||||
"-ldl").strip
|
||||
"-ldl").replaceWord("-lroot").replaceWord(
|
||||
"-lnetwork").strip
|
||||
else:
|
||||
if cmpIgnoreStyle(k.key, "libpath") == 0:
|
||||
c.libpath = k.value
|
||||
|
||||
Reference in New Issue
Block a user