File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ COPTS = [
18
18
"-DGFLAGS_NS=google" ,
19
19
]
20
20
21
+ LINKOPTS = [
22
+ "-lpthread" ,
23
+ "-lrt" ,
24
+ "-lssl" ,
25
+ "-lcrypto" ,
26
+ "-ldl" ,
27
+ "-lz" ,
28
+ ]
29
+
21
30
genrule (
22
31
name = "config_h" ,
23
32
outs = [
@@ -154,7 +163,7 @@ BUTIL_SRCS = [
154
163
"src/butil/containers/case_ignored_flat_map.cpp" ,
155
164
"src/butil/iobuf.cpp" ,
156
165
"src/butil/popen.cpp" ,
157
- ]
166
+ ]
158
167
159
168
160
169
cc_library (
@@ -179,6 +188,7 @@ cc_library(
179
188
"src/" ,
180
189
],
181
190
copts = COPTS ,
191
+ linkopts = LINKOPTS ,
182
192
)
183
193
184
194
cc_library (
@@ -199,6 +209,7 @@ cc_library(
199
209
":butil" ,
200
210
],
201
211
copts = COPTS ,
212
+ linkopts = LINKOPTS ,
202
213
)
203
214
204
215
cc_library (
@@ -218,6 +229,7 @@ cc_library(
218
229
":bvar" ,
219
230
],
220
231
copts = COPTS ,
232
+ linkopts = LINKOPTS ,
221
233
)
222
234
223
235
cc_library (
@@ -235,6 +247,7 @@ cc_library(
235
247
":butil" ,
236
248
],
237
249
copts = COPTS ,
250
+ linkopts = LINKOPTS ,
238
251
)
239
252
240
253
cc_library (
@@ -251,8 +264,10 @@ cc_library(
251
264
deps = [
252
265
":butil" ,
253
266
":cc_brpc_internal_proto" ,
267
+ "@com_google_protobuf//:protoc_lib" ,
254
268
],
255
269
copts = COPTS ,
270
+ linkopts = LINKOPTS ,
256
271
)
257
272
258
273
brpc_proto_library (
@@ -291,6 +306,7 @@ cc_library(
291
306
"@com_github_google_leveldb//:leveldb" ,
292
307
],
293
308
copts = COPTS ,
309
+ linkopts = LINKOPTS ,
294
310
visibility = ["//visibility:public" ],
295
311
)
296
312
You can’t perform that action at this time.
0 commit comments