From 78ac6aee6dff1b608bc312fe7ada442ba83710e8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2020 14:51:38 +0200 Subject: Complete NetBSD compatibility --- libbuild2/cc/guess.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbuild2/cc/guess.cxx') 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"; } -- cgit v1.1