level up boost to version 0.46
[openwrt/svn-archive/archive.git] / libs / boost / patches / 100-do-not-use-librt.patch
1 diff -ruN boost_1_48_0.orig/tools/build/v2/tools/gcc.jam boost_1_48_0/tools/build/v2/tools/gcc.jam
2 --- boost_1_48_0.orig/tools/build/v2/tools/gcc.jam 2011-06-06 22:36:21.000000000 +0200
3 +++ boost_1_48_0/tools/build/v2/tools/gcc.jam 2011-11-16 13:15:49.071254804 +0100
4 @@ -1063,8 +1063,7 @@
5 }
6 case * :
7 {
8 - option = -pthread ;
9 - libs = rt ;
10 + # pass appropriate options via OpenWrt
11 }
12 }
13
14 diff -ruN boost_1_48_0.orig/tools/build/v2/tools/gcc.py boost_1_48_0/tools/build/v2/tools/gcc.py
15 --- boost_1_48_0.orig/tools/build/v2/tools/gcc.py 2011-01-25 19:06:12.000000000 +0100
16 +++ boost_1_48_0/tools/build/v2/tools/gcc.py 2011-11-16 13:16:12.601254423 +0100
17 @@ -685,8 +685,8 @@
18 # Darwin has no threading options, don't set anything here.
19 pass
20 else:
21 - flags('gcc', 'OPTIONS', ['<threading>multi'], ['-pthread'])
22 - flags('gcc', 'FINDLIBS-SA', [], ['rt'])
23 + # pass appropriate options via OpenWrt
24 + pass
25
26 def cpu_flags(toolset, variable, architecture, instruction_set, values, default=None):
27 #FIXME: for some reason this fails. Probably out of date feature code