aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/cpp/route_guide
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2016-07-29 15:45:02 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2016-07-29 15:45:02 -0700
commit7a2bc14fc0f5ad3b70ac9c47d37ec96625ba80dc (patch)
tree3b9fd21b356a7cc8b12780394fd676b7ca3cabb5 /examples/cpp/route_guide
parent8a9fe2ad9705089b91bff9ab3b2ef5a6011326ee (diff)
parent5e623b8d8d8d106bd4ab9a6d77ef43b1a134d8ec (diff)
Merge commit '5e623b8d8d8d106bd4ab9a6d77ef43b1a134d8ec' into p0-advance-protobuf-version
Diffstat (limited to 'examples/cpp/route_guide')
-rw-r--r--examples/cpp/route_guide/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/cpp/route_guide/Makefile b/examples/cpp/route_guide/Makefile
index df40b04f32..3ce089ce60 100644
--- a/examples/cpp/route_guide/Makefile
+++ b/examples/cpp/route_guide/Makefile
@@ -32,7 +32,9 @@
CXX = g++
CPPFLAGS += -I/usr/local/include -pthread
CXXFLAGS += -std=c++11
-LDFLAGS += -L/usr/local/lib `pkg-config --libs grpc++` -lprotobuf -lpthread -ldl
+LDFLAGS += -L/usr/local/lib `pkg-config --libs grpc++` \
+ -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed \
+ -lprotobuf -lpthread -ldl
PROTOC = protoc
GRPC_CPP_PLUGIN = grpc_cpp_plugin
GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)`