[CRIU] [PATCH 2/5] make: lib -- use ldflags-so and obj-ext-src-y

Ruslan Kuprieiev kupruser at gmail.com
Tue Dec 10 10:11:41 PST 2013


We need ldflags-so to link libcriu with -lprotobuf-c
and rpc.pb-c.o to use RPC.

Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 lib/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/Makefile b/lib/Makefile
index b008d9c..e9beace 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,9 +1,11 @@
 lib-so			+= libcriu
 obj-y			+= criu.o
+obj-ext-src-y		+= protobuf/rpc.pb-c.o
 
-includes		+= -iquote $(obj)/../arch/$(ARCH)/include -iquote $(obj)/../include -iquote $(obj)/..
+includes		+= -iquote $(obj)/../arch/$(ARCH)/include -iquote $(obj)/../include -iquote $(obj)/.. -iquote $(obj)/../protobuf
 cflags-y		+= $(includes) -fPIC -Wa,--noexecstack -fno-stack-protector
 cflags-so		+= -rdynamic
+ldflags-so		+= -lprotobuf-c
 
 .SECONDARY:
 
-- 
1.8.3.2



More information about the CRIU mailing list