summaryrefslogtreecommitdiff
path: root/meta-pkgs/boost/patches/patch-aa
blob: 54953e871cc9ac7128af77d8c321bb575bb4d3a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-aa,v 1.1 2005/02/26 22:48:34 jmmv Exp $

--- tools/build/v1/gcc-tools.jam.orig	2004-10-19 17:12:58.000000000 +0200
+++ tools/build/v1/gcc-tools.jam
@@ -123,6 +123,12 @@ else if $(UNIX)
         .GCC ?= cc ;
         .GXX ?= c++ ;
         }
+    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 ;
@@ -175,7 +181,7 @@ if $(UNIX)
         SONAME = -Wl,-soname, ;
         flags gcc OBJCOPY_FLAGS <debug-symbols>on : "--set-section-flags .debug_str=contents,debug" ;
         }
-    case OpenBSD :
+    case *BSD :
         {
         SONAME = -Wl,-soname, ;
         }