use linkstatic for libraries that contain main() (#25517)

reviewable/pr25361/r4
Jan Tattermusch 4 years ago committed by GitHub
parent e46445cb5d
commit 65454866da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      bazel/grpc_build_system.bzl
  2. 1
      test/core/util/BUILD
  3. 1
      test/cpp/end2end/BUILD

@ -78,7 +78,8 @@ def grpc_cc_library(
alwayslink = 0,
data = [],
use_cfstream = False,
tags = []):
tags = [],
linkstatic = False):
copts = []
if use_cfstream:
copts = if_mac(["-DGRPC_CFSTREAM"])
@ -122,6 +123,7 @@ def grpc_cc_library(
alwayslink = alwayslink,
data = data,
tags = tags,
linkstatic = linkstatic,
)
def grpc_proto_plugin(name, srcs = [], deps = []):

@ -126,6 +126,7 @@ grpc_cc_library(
"absl/flags:flag",
"gtest",
],
linkstatic = True,
tags = ["no_windows"],
deps = [
":grpc_test_util",

@ -220,6 +220,7 @@ grpc_cc_library(
external_deps = [
"gtest",
],
linkstatic = True,
deps = [
":interceptors_util",
":test_service_impl",

Loading…
Cancel
Save