Works around a niminst bug. Related to commit 3813af63f5 and #4831.

This commit is contained in:
Dominik Picheta
2016-09-29 20:59:14 +02:00
parent d5ec9ba099
commit c035fd93f4
2 changed files with 3 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ case $uos in
;;
*haiku* )
myos="haiku"
LINK_FLAGS="$LINK_FLAGS -lroot -lnetwork"
;;
*)
echo 2>&1 "Error: unknown operating system: $uos"

View File

@@ -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