Commit a2225308 authored by Venkateswara Rao Mandela's avatar Venkateswara Rao Mandela Committed by Pavel Emelyanov

test/others/rpc: fix build error

Build in tests/others/rpc folder was failing due to the use of LDFLAGS
variable instead of LDLIBS variable to link libprotobuf-c. The makefile
uses implicit build rules.

$(CC) $(LDFLAGS) n.o $(LOADLIBES) $(LDLIBS)

Using LDFLAGS places -llibprotobuf-c before the object files, preventing
the library from being searched for required functions.  This commit
changes the variable to LDLIBS instead to fix the issue.

travis-ci: success for test/others/rpc: fix build error
Signed-off-by: 's avatarVenkateswara Rao Mandela <venkat.mandela@ti.com>
Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent e8d05923
......@@ -2,7 +2,7 @@ all: test-c rpc_pb2.py criu
.PHONY: all
CFLAGS += -g -Werror -Wall -I.
LDFLAGS += -lprotobuf-c
LDLIBS += -lprotobuf-c
run: all
mkdir -p build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment