b8e62a56cad8776747df270e49cfdd06f374e863
[packages.git] / libs / boost / patches / 100-do-not-use-librt.patch
1 --- a/tools/build/v2/tools/gcc.jam
2 +++ b/tools/build/v2/tools/gcc.jam
3 @@ -1018,8 +1018,7 @@ rule setup-threading ( targets * : sourc
4              }
5              case * :
6              {
7 -                option = -pthread ;
8 -                libs = rt ;
9 +                # pass appropriate options via OpenWrt
10              }
11          }
12      
13 --- a/tools/build/v2/tools/gcc.py
14 +++ b/tools/build/v2/tools/gcc.py
15 @@ -685,8 +685,8 @@ elif bjam.variable('UNIX'):
16          # Darwin has no threading options, don't set anything here.
17          pass
18      else:
19 -        flags('gcc', 'OPTIONS', ['<threading>multi'], ['-pthread'])
20 -        flags('gcc', 'FINDLIBS-SA', [], ['rt'])
21 +        # pass appropriate options via OpenWrt
22 +        pass
23  
24  def cpu_flags(toolset, variable, architecture, instruction_set, values, default=None):
25      #FIXME: for some reason this fails.  Probably out of date feature code