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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-aa,v 1.2 2006/01/12 22:48:46 joerg 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,11 @@ 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, ;
+ }
+ case DragonFly :
{
SONAME = -Wl,-soname, ;
}
@@ -416,7 +426,7 @@ rule Link-action
LNOPT on $(<) = "" ;
}
# do we use sonames or not?
- if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
+ if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = DRAGONFLY || $(OS) = FREEBSD || $(OS) = LINUX || $(OS) = NETBSD || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
{
OUTTAG on $(<) = ".$(DLLVERSION)" ;
SOTAG on $(<) = ".$(DLLVERSION)" ;
@@ -462,7 +472,7 @@ rule Link-action
gcc-spawn $(<) ;
gcc-Link-action $(<) : $(>) ;
- if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
+ if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = DRAGONFLY || $(OS) = FREEBSD || $(OS) = LINUX || $(OS) = NETBSD || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
{
return "$(<[1]).$(DLLVERSION)" ;
}
|