diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-01-18 23:25:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 08:25:21 +0100 |
commit | 2e5254ff279d8013c01f6f56064fda713e0a6e4d (patch) | |
tree | b24d96103f4e53badff1f0b972e587acc649b150 /config | |
parent | 580b8f744b288e2069792ff4181743e4e588eced (diff) | |
download | Nim-2e5254ff279d8013c01f6f56064fda713e0a6e4d.tar.gz |
fix config/nim.cfg: `@if not bsd or haiku:` was buggy (#16748)
Diffstat (limited to 'config')
-rw-r--r-- | config/nim.cfg | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/config/nim.cfg b/config/nim.cfg index a33a2f0a9..83caf8a2b 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -111,26 +111,24 @@ path="$lib/pure" @end @if unix: - @if not bsd or haiku: - # -fopenmp - gcc.options.linker = "-ldl" - gcc.cpp.options.linker = "-ldl" - clang.options.linker = "-ldl" - clang.cpp.options.linker = "-ldl" - tcc.options.linker = "-ldl" - @end @if bsd: # BSD got posix_spawn only recently, so we deactivate it for osproc: define:useFork # at least NetBSD has problems with thread local storage: tlsEmulation:on - @end - @if haiku: + @elif haiku: gcc.options.linker = "-Wl,--as-needed -lnetwork" gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork" clang.options.linker = "-Wl,--as-needed -lnetwork" clang.cpp.options.linker = "-Wl,--as-needed -lnetwork" tcc.options.linker = "-Wl,--as-needed -lnetwork" + @else: + # -fopenmp + gcc.options.linker = "-ldl" + gcc.cpp.options.linker = "-ldl" + clang.options.linker = "-ldl" + clang.cpp.options.linker = "-ldl" + tcc.options.linker = "-ldl" @end @end |