aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/guess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc/guess.cxx')
-rw-r--r--libbuild2/cc/guess.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/cc/guess.cxx b/libbuild2/cc/guess.cxx
index 109dfa3..a2a6397 100644
--- a/libbuild2/cc/guess.cxx
+++ b/libbuild2/cc/guess.cxx
@@ -261,6 +261,8 @@ namespace build2
" stdlib:=\"glibc\" /* pretend to be it. */ \n"
"# elif defined(__FreeBSD__) \n"
" stdlib:=\"freebsd\" \n"
+"# elif defined(__NetBSD__) \n"
+" stdlib:=\"netbsd\" \n"
"# elif defined(__APPLE__) \n"
" stdlib:=\"apple\" \n"
"# else \n"
@@ -2429,7 +2431,8 @@ namespace build2
}
else if (tt.system == "win32-msvc") rt = "msvc";
else if (tt.system == "linux-gnu" ||
- tt.system == "freebsd") rt = "libgcc";
+ tt.system == "freebsd" ||
+ tt.system == "netbsd") rt = "libgcc";
else /* Mac OS, etc. */ rt = "compiler-rt";
}