diff options
author | Robbie Shade <rjshade@google.com> | 2016-07-26 07:44:10 -0400 |
---|---|---|
committer | Robbie Shade <rjshade@google.com> | 2016-07-26 07:44:10 -0400 |
commit | 43b633d54f4708750cffe4374c9f56c65bec8fef (patch) | |
tree | 8b1813cd15a7792bfadf1275ab59773d74e71efc /examples/cpp/route_guide/Makefile | |
parent | 53826511f95cbfa31e3b8316b11cf397830502b0 (diff) | |
parent | 7b104cd1c23a3e6ee3cb0809f39617ceda5e2575 (diff) |
Merge branch 'master' into move_timeout_encoding
Diffstat (limited to 'examples/cpp/route_guide/Makefile')
-rw-r--r-- | examples/cpp/route_guide/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/cpp/route_guide/Makefile b/examples/cpp/route_guide/Makefile index 50ecf041f5..9ee5119509 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)` |