Make grpc++_base and grpc++_base_unsecure use the correct dependencies

1) src/cpp/client/channel_cc.cc uses ::grpc::g_core_codegen_interface.
2) GRPCXX_SRCS includes src/cpp/client/channel_cc.cc
3) "grpc++_codegen_base_src" contains src/cpp/codegen/codegen_init.cc
which has ::grpc::g_core_codegen_interface.
3) "grpc++_base" and "grpc++_base_unsecure" includes GRPCXX_SRCS.
4) But, "grpc++_base" and "grpc++_base_unsecure" don't include
"grpc++_codegen_base_src" at all which creates unsatisfied linker error
in some targets unless they depend on "grpc++_codegen_base_src"
themselves.

Solution: Make "grpc++_base" and "grpc++_base_unsecure" depend upon "grpc++_codegen_base_src".
pull/20312/head
Karthik Ravi Shankar 5 years ago
parent 74f8da0ae9
commit 8031a0a7ab
  1. 2
      BUILD

@ -1958,6 +1958,7 @@ grpc_cc_library(
deps = [
"grpc",
"grpc++_codegen_base",
"grpc++_codegen_base_src",
"grpc_health_upb",
],
)
@ -1970,6 +1971,7 @@ grpc_cc_library(
public_hdrs = GRPCXX_PUBLIC_HDRS,
deps = [
"grpc++_codegen_base",
"grpc++_codegen_base_src",
"grpc_health_upb",
"grpc_unsecure",
],

Loading…
Cancel
Save