[CRIU] [PATCH 2/3] test: libcriu: include protobuf dir

Ruslan Kuprieiev rkuprieiev at cloudlinux.com
Tue Jul 14 18:45:03 PDT 2015


We only need a rpc.pb-c.h header.

Signed-off-by: Ruslan Kuprieiev <rkuprieiev at cloudlinux.com>
---
 test/libcriu/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/libcriu/Makefile b/test/libcriu/Makefile
index 1a251ba..459ae61 100644
--- a/test/libcriu/Makefile
+++ b/test/libcriu/Makefile
@@ -11,13 +11,13 @@ run: all
 
 define genb
 $(1): $(1).o lib.o
-	gcc $$^ -L ../../lib -lcriu -o $$@
+	gcc $$^ -L ../../lib -L ../../protobuf -lcriu -o $$@
 endef
 
 $(foreach t, $(TESTS), $(eval $(call genb, $(t))))
 
 %.o: %.c
-	gcc -c $^ -I../../lib/ -o $@ -Werror
+	gcc -c $^ -I../../lib/ -I../../protobuf -o $@ -Werror
 
 clean:
 	rm -rf $(TESTS) $(TESTS:%=%.o) lib.o
-- 
2.1.0



More information about the CRIU mailing list