summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-09-29 12:47:54 +0200
committerGitHub <noreply@github.com>2016-09-29 12:47:54 +0200
commit12eb5540f37eeeb75f1934c8efd86ad8af6d2c40 (patch)
tree73b79869e2acfde6fc03bbb99712bce1557aa233
parent55abc3dc386bb5a33eb71fbca351250920e5be65 (diff)
parent3813af63f50a1f5a62cba6517fe5b8c2f709656f (diff)
downloadNim-12eb5540f37eeeb75f1934c8efd86ad8af6d2c40.tar.gz
Merge pull request #4831 from miqlas/Haiku
Haiku supporting code in nim.cfg. We don't have -ldl.
-rw-r--r--config/nim.cfg10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 0373de135..8c8270f3e 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -66,7 +66,7 @@ path="$lib/pure"
 @end
 
 @if unix:
-  @if not bsd:
+  @if not bsd or haiku:
     # -fopenmp
     gcc.options.linker = "-ldl"
     gcc.cpp.options.linker = "-ldl"
@@ -80,6 +80,14 @@ path="$lib/pure"
     # at least NetBSD has problems with thread local storage:
     tlsEmulation:on
   @end
+  @if haiku:
+    # -fopenmp
+    gcc.options.linker = "-lroot -lnetwork"
+    gcc.cpp.options.linker = "-lroot -lnetwork"
+    clang.options.linker = "-lroot -lnetwork"
+    clang.cpp.options.linker = "-lroot -lnetwork"
+    tcc.options.linker = "-lroot -lnetwork"
+  @end
 @end
 
 # Configuration for the Intel C/C++ compiler: