Switch the link order of the protobuf and protoc libraries to resolve unresolved symbols when linking statically

This commit is contained in:
Mark Grimes 2016-11-03 09:52:48 +00:00
parent 00c5cc9c68
commit e5fe1be838
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@
CXX = g++
CPPFLAGS += -I/usr/local/include -pthread
CXXFLAGS += -std=c++11
LDFLAGS += -L/usr/local/lib -Wl,--no-as-needed -lprotobuf \
-lprotoc -lpthread -ldl
LDFLAGS += -L/usr/local/lib -Wl,--no-as-needed -lprotoc \
-lprotobuf -lpthread -ldl
all: protoc-gen-grpc-web