Commit 39a1c44b authored by donghuixu's avatar donghuixu

add linkopts and protoc_lib in deps

parent ab65fb0f
...@@ -18,6 +18,15 @@ COPTS = [ ...@@ -18,6 +18,15 @@ COPTS = [
"-DGFLAGS_NS=google", "-DGFLAGS_NS=google",
] ]
LINKOPTS = [
"-lpthread",
"-lrt",
"-lssl",
"-lcrypto",
"-ldl",
"-lz",
]
genrule( genrule(
name = "config_h", name = "config_h",
outs = [ outs = [
...@@ -154,7 +163,7 @@ BUTIL_SRCS = [ ...@@ -154,7 +163,7 @@ BUTIL_SRCS = [
"src/butil/containers/case_ignored_flat_map.cpp", "src/butil/containers/case_ignored_flat_map.cpp",
"src/butil/iobuf.cpp", "src/butil/iobuf.cpp",
"src/butil/popen.cpp", "src/butil/popen.cpp",
] ]
cc_library( cc_library(
...@@ -179,6 +188,7 @@ cc_library( ...@@ -179,6 +188,7 @@ cc_library(
"src/", "src/",
], ],
copts = COPTS, copts = COPTS,
linkopts = LINKOPTS,
) )
cc_library( cc_library(
...@@ -199,6 +209,7 @@ cc_library( ...@@ -199,6 +209,7 @@ cc_library(
":butil", ":butil",
], ],
copts = COPTS, copts = COPTS,
linkopts = LINKOPTS,
) )
cc_library( cc_library(
...@@ -218,6 +229,7 @@ cc_library( ...@@ -218,6 +229,7 @@ cc_library(
":bvar", ":bvar",
], ],
copts = COPTS, copts = COPTS,
linkopts = LINKOPTS,
) )
cc_library( cc_library(
...@@ -235,6 +247,7 @@ cc_library( ...@@ -235,6 +247,7 @@ cc_library(
":butil", ":butil",
], ],
copts = COPTS, copts = COPTS,
linkopts = LINKOPTS,
) )
cc_library( cc_library(
...@@ -251,8 +264,10 @@ cc_library( ...@@ -251,8 +264,10 @@ cc_library(
deps = [ deps = [
":butil", ":butil",
":cc_brpc_internal_proto", ":cc_brpc_internal_proto",
"@com_google_protobuf//:protoc_lib",
], ],
copts = COPTS, copts = COPTS,
linkopts = LINKOPTS,
) )
brpc_proto_library( brpc_proto_library(
...@@ -291,6 +306,7 @@ cc_library( ...@@ -291,6 +306,7 @@ cc_library(
"@com_github_google_leveldb//:leveldb", "@com_github_google_leveldb//:leveldb",
], ],
copts = COPTS, copts = COPTS,
linkopts = LINKOPTS,
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment