$NetBSD: patch-aa,v 1.3 2004/06/06 23:51:37 tv Exp $

--- tools/build/v1/gcc-tools.jam.orig	Fri Jun  4 16:08:55 2004
+++ tools/build/v1/gcc-tools.jam
@@ -123,6 +123,12 @@ else if $(UNIX)
         .GXX ?= c++ ;
         flags gcc CFLAGS : -Wno-long-double ;
         }
+    case NetBSD :
+        {
+        flags gcc CFLAGS <threading>multi : -pthread ;
+        flags gcc LINKFLAGS <threading>multi : -lpthread ;
+        # there is no -lrt on NetBSD
+        }
     case *BSD :
         {
         flags gcc CFLAGS <threading>multi : -pthread ;
@@ -166,7 +172,7 @@ if $(UNIX)
         RPATH_LINK = -Wl,-rpath-link, ;
         SONAME = -Wl,-soname, ;
         }
-    case OpenBSD :
+    case *BSD :
         {
         SONAME = -Wl,-soname, ;
         }
