diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-18 14:51:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-18 14:51:38 +0200 |
commit | 78ac6aee6dff1b608bc312fe7ada442ba83710e8 (patch) | |
tree | e887435cf8af9ae0e13646e452202f68516a958d /libbuild2/cc/guess.cxx | |
parent | 2896bd88378712fcd253e0a03b20892acb1dd299 (diff) |
Complete NetBSD compatibility
Diffstat (limited to 'libbuild2/cc/guess.cxx')
-rw-r--r-- | libbuild2/cc/guess.cxx | 5 |
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"; } |