summaryrefslogtreecommitdiff
path: root/boost-1.77-locale-remove-linking-with-boost-system.patch
blob: a3ecde136813ea2de9b272497df9c834eccb8083 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
From aebac1401f9ddabb84c222481301d25beea1988d Mon Sep 17 00:00:00 2001
From: Andrey Semashev <andrey.semashev@gmail.com>
Date: Mon, 14 Jan 2019 21:08:25 +0300
Subject: [PATCH 1/2] Remove linking with Boost.System.

Since Boost.System is header-only now, no need to link with the library.
---
 build/Jamfile.v2 | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libs/locale/build/Jamfile.v2 b/libs/locale/build/Jamfile.v2
index 578e722e..43ab0014 100644
--- a/libs/locale/build/Jamfile.v2
+++ b/libs/locale/build/Jamfile.v2
@@ -382,9 +382,6 @@ rule configure-full ( properties * : flags-only )
         result += <source>util/gregorian.cpp ;
     }
     
-    result += <library>../../system/build//boost_system ;
-
-
     if "$(flags-only)" = "flags" 
     {
         return $(flags-result) ;

From b01aab1d28c9b32d107ae39c76c9af988420d476 Mon Sep 17 00:00:00 2001
From: Andrey Semashev <andrey.semashev@gmail.com>
Date: Mon, 14 Jan 2019 21:10:38 +0300
Subject: [PATCH 2/2] Trim trailing spaces.

---
 build/Jamfile.v2 | 119 +++++++++++++++++++++++------------------------
 1 file changed, 59 insertions(+), 60 deletions(-)

diff --git a/libs/locale/build/Jamfile.v2 b/libs/locale/build/Jamfile.v2
index 43ab0014..97dd68c7 100644
--- a/libs/locale/build/Jamfile.v2
+++ b/libs/locale/build/Jamfile.v2
@@ -1,6 +1,6 @@
 # copyright John Maddock 2003, Artyom Beilis 2010
-# Distributed under the Boost Software License, Version 1.0. 
-# (See accompanying file LICENSE_1_0.txt or copy at 
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
 # http://www.boost.org/LICENSE_1_0.txt.
 
 
@@ -32,11 +32,11 @@ explicit has_iconv ;
 
 ICONV_PATH = [ modules.peek : ICONV_PATH ] ;
 
-lib iconv 
-  : 
+lib iconv
+  :
   : <search>$(ICONV_PATH)/lib <link>shared <runtime-link>shared
   :
-  : <include>$(ICONV_PATH)/include 
+  : <include>$(ICONV_PATH)/include
   ;
 
 explicit iconv ;
@@ -45,8 +45,8 @@ obj has_iconv_libc_ext : ../build/has_iconv.cpp iconv ;
 exe has_external_iconv : has_iconv_libc_ext iconv ;
 explicit has_external_iconv ;
 
-exe accepts_shared_option   : ../build/option.cpp 
-                            :   <cxxflags>-shared-libstdc++ 
+exe accepts_shared_option   : ../build/option.cpp
+                            :   <cxxflags>-shared-libstdc++
                                 <cxxflags>-shared-libgcc
                                 <linkflags>-shared-libstdc++
                                 <linkflags>-shared-libgcc
@@ -71,8 +71,8 @@ if $(ICU_LINK)
 else
 {
     searched-lib icuuc : :  <name>icuuc
-                            <search>$(ICU_PATH)/lib 
-                            <link>shared 
+                            <search>$(ICU_PATH)/lib
+                            <link>shared
                             <runtime-link>shared ;
 
     searched-lib icuuc : :  <toolset>msvc
@@ -120,9 +120,9 @@ else
 
     explicit icuuc icudt icuin ;
 
-    ICU_OPTS =   <include>$(ICU_PATH)/include 
-      <library>icuuc/<link>shared/<runtime-link>shared 
-      <library>icudt/<link>shared/<runtime-link>shared 
+    ICU_OPTS =   <include>$(ICU_PATH)/include
+      <library>icuuc/<link>shared/<runtime-link>shared
+      <library>icudt/<link>shared/<runtime-link>shared
       <library>icuin/<link>shared/<runtime-link>shared
       <dll-path>$(ICU_PATH)/bin
         <runtime-link>shared ;
@@ -130,8 +130,8 @@ else
 
 
     searched-lib icuuc_64 : :   <name>icuuc
-                                <search>$(ICU_PATH)/lib64 
-                                <link>shared 
+                                <search>$(ICU_PATH)/lib64
+                                <link>shared
                                 <runtime-link>shared ;
 
     searched-lib icuuc_64 : :   <toolset>msvc
@@ -179,14 +179,14 @@ else
 
     explicit icuuc_64 icudt_64 icuin_64 ;
 
-    ICU64_OPTS =   <include>$(ICU_PATH)/include 
-      <library>icuuc_64/<link>shared/<runtime-link>shared 
-      <library>icudt_64/<link>shared/<runtime-link>shared 
+    ICU64_OPTS =   <include>$(ICU_PATH)/include
+      <library>icuuc_64/<link>shared/<runtime-link>shared
+      <library>icudt_64/<link>shared/<runtime-link>shared
       <library>icuin_64/<link>shared/<runtime-link>shared
       <dll-path>$(ICU_PATH)/bin64
         <runtime-link>shared ;
- 
-    
+
+
 }
 
 obj has_icu_obj     : ../build/has_icu_test.cpp : $(ICU_OPTS)   ;
@@ -206,11 +206,11 @@ rule configure-full ( properties * : flags-only )
 
     local result ;
     local flags-result ;
-    
+
     local found-iconv ;
-    
+
     if <boost.locale.iconv>on in $(properties)
-      || ! <boost.locale.iconv> in $(properties:G) 
+      || ! <boost.locale.iconv> in $(properties:G)
         && ! <target-os>solaris in $(properties)
     {
         # See if iconv is bundled with standard library.
@@ -218,7 +218,7 @@ rule configure-full ( properties * : flags-only )
         {
             found-iconv = true ;
         }
-        else 
+        else
         {
             if [ configure.builds has_external_iconv : $(properties) : "iconv (separate)" ]
             {
@@ -226,8 +226,8 @@ rule configure-full ( properties * : flags-only )
                 result += <library>iconv ;
             }
         }
-    }        
-    if $(found-iconv) 
+    }
+    if $(found-iconv)
     {
         flags-result += <define>BOOST_LOCALE_WITH_ICONV=1 ;
     }
@@ -249,7 +249,7 @@ rule configure-full ( properties * : flags-only )
 
         if $(found-icu)
         {
-            ICU_SOURCES = 
+            ICU_SOURCES =
                 boundary
                 codecvt
                 collator
@@ -260,20 +260,20 @@ rule configure-full ( properties * : flags-only )
                 numeric
                 time_zone
                 ;
-            
-            result += <source>icu/$(ICU_SOURCES).cpp 
-                      <library>../../thread/build//boost_thread 
+
+            result += <source>icu/$(ICU_SOURCES).cpp
+                      <library>../../thread/build//boost_thread
                       ;
         }
 
     }
-        
-    if ! $(found-iconv) && ! $(found-icu) && ! <target-os>windows in $(properties) && ! <target-os>cygwin in $(properties) 
+
+    if ! $(found-iconv) && ! $(found-icu) && ! <target-os>windows in $(properties) && ! <target-os>cygwin in $(properties)
     {
         ECHO "- Boost.Locale needs either iconv or ICU library to be built." ;
         result += <build>no ;
     }
-    
+
     if ! <boost.locale.std> in $(properties:G)
     {
         if <toolset>sun in $(properties)
@@ -283,9 +283,9 @@ rule configure-full ( properties * : flags-only )
         else
         {
             properties += <boost.locale.std>on ;
-        }                
+        }
     }
-    
+
     if <boost.locale.std>off in $(properties)
     {
         flags-result += <define>BOOST_LOCALE_NO_STD_BACKEND=1 ;
@@ -301,38 +301,38 @@ rule configure-full ( properties * : flags-only )
           ;
         result += <source>std/$(STD_SOURCES).cpp ;
     }
-    
+
     if ! <boost.locale.winapi> in $(properties:G)
     {
-        if <target-os>windows in $(properties) 
+        if <target-os>windows in $(properties)
           || <target-os>cygwin in $(properties)
         {
             properties += <boost.locale.winapi>on ;
-        }      
+        }
         else
         {
             properties += <boost.locale.winapi>off ;
-        }                
+        }
     }
-    if  <target-os>windows in $(properties) 
-        && <toolset>gcc in $(properties) 
+    if  <target-os>windows in $(properties)
+        && <toolset>gcc in $(properties)
         && <link>shared in $(properties)
         && [ configure.builds accepts_shared_option : $(properties) : "g++ -shared-* supported" ]
     {
-        flags-result += <cxxflags>-shared-libstdc++ 
+        flags-result += <cxxflags>-shared-libstdc++
                         <cxxflags>-shared-libgcc
                         <linkflags>-shared-libstdc++
                         <linkflags>-shared-libgcc
                         ;
     }
-    
+
     if <boost.locale.winapi>off in $(properties)
     {
         flags-result += <define>BOOST_LOCALE_NO_WINAPI_BACKEND=1 ;
     }
     else
     {
-        WINAPI_SOURCES = 
+        WINAPI_SOURCES =
             collate
             converter
             numeric
@@ -340,34 +340,34 @@ rule configure-full ( properties * : flags-only )
           ;
         result += <source>win32/$(WINAPI_SOURCES).cpp ;
     }
-    
+
     if ( ! <boost.locale.winapi>off in $(properties) || ! <boost.locale.std>off in $(properties) )
        && ( <target-os>windows in $(properties) || <target-os>cygwin in $(properties) )
     {
         result += <source>win32/lcid.cpp ;
     }
- 
+
     if ! <boost.locale.posix> in $(properties:G)
     {
-        if <target-os>linux in $(properties) 
-            || <target-os>darwin in $(properties) 
+        if <target-os>linux in $(properties)
+            || <target-os>darwin in $(properties)
             || ( <target-os>freebsd in $(properties) && [ configure.builds has_xlocale : $(properties) : "xlocale supported" ] )
         {
             properties += <boost.locale.posix>on ;
         }
         else
         {
-            properties += <boost.locale.posix>off ;            
-        }        
+            properties += <boost.locale.posix>off ;
+        }
     }
-    
+
     if <boost.locale.posix>off in $(properties)
     {
-        flags-result += <define>BOOST_LOCALE_NO_POSIX_BACKEND=1 ;        
+        flags-result += <define>BOOST_LOCALE_NO_POSIX_BACKEND=1 ;
     }
     else
     {
-        POSIX_SOURCES = 
+        POSIX_SOURCES =
           collate
           converter
           numeric
@@ -381,12 +381,13 @@ rule configure-full ( properties * : flags-only )
     {
         result += <source>util/gregorian.cpp ;
     }
-    
-    if "$(flags-only)" = "flags" 
+
+    if "$(flags-only)" = "flags"
     {
         return $(flags-result) ;
     }
-    else {
+    else
+    {
         result += $(flags-result) ;
         return $(result) ;
     }
@@ -396,7 +397,6 @@ rule configure ( properties * )
 {
     local result = [ configure-full $(properties) : "all" ] ;
     return $(result) ;
-    
 }
 
 rule configure-flags ( properties * )
@@ -404,15 +404,14 @@ rule configure-flags ( properties * )
     local result ;
     result = [ configure-full $(properties) : "flags" ] ;
     return $(result) ;
-    
 }
 
 
 alias build_options : : : : <conditional>@configure ;
 alias build_flags : : : : <conditional>@configure-flags ;
 
-lib boost_locale 
-    : 
+lib boost_locale
+    :
         encoding/codepage.cpp
         shared/date_time.cpp
         shared/format.cpp
@@ -425,7 +424,7 @@ lib boost_locale
         util/codecvt_converter.cpp
         util/default_locale.cpp
         util/info.cpp
-        util/locale_data.cpp  
+        util/locale_data.cpp
     :
       # Don't link explicitly, not required
       <define>BOOST_THREAD_NO_LIB=1