From db30b0139aa1633b3db8689f782778cb43e45452 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 19 Nov 2016 14:42:02 +0100 Subject: [PATCH] More build tweaks. --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 525a01e2..3f9c7a7d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -283,7 +283,7 @@ endif ### 3.3 Optimization ifeq ($(optimize),yes) - CXXFLAGS += -O3 + CXXFLAGS += -O3 -g ifeq ($(comp),gcc) ifeq ($(OS), Android) @@ -550,7 +550,8 @@ GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)` %.pb.h %.pb.cc: %.proto $(PROTOC) -I $(PROTOS_PATH) --cpp_out=. $< -LDFLAGS += -Wl,-Bstatic -Wl,-\( -lprotobuf -lgrpc++_unsecure -lgrpc_unsecure -lgrpc -lz -Wl,-\) -Wl,-Bdynamic -ldl +#LDFLAGS += -Wl,-Bstatic -Wl,-\( -lprotobuf -lgrpc++_unsecure -lgrpc_unsecure -lgrpc -lz -Wl,-\) -Wl,-Bdynamic -ldl +LDFLAGS += /usr/local/lib/libprotobuf.a /usr/local/lib/libgrpc++_unsecure.a /usr/local/lib/libgrpc_unsecure.a /usr/local/lib/libgrpc.a -ldl -lz client: $(CLIOBJS) $(CXX) -o $@ $(CLIOBJS) $(LDFLAGS) -- 2.39.2