mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
make: lib -- use ldflags-so and obj-ext-src-y
We need ldflags-so to link libcriu with -lprotobuf-c and rpc.pb-c.o to use RPC. Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
33993eaf5b
commit
ba18a5e16c
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user