Commit c1f31142 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

build: lib -- Fix building for C library

- drop unneeded @built-in.o rule
- use proper @CRIU_SO for -soname option
- add dep on version change
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 4854940d
...@@ -5,14 +5,11 @@ CRIU_SO := libcriu.so ...@@ -5,14 +5,11 @@ CRIU_SO := libcriu.so
# #
# C language bindings. # C language bindings.
c/%: c/%: ../Makefile.versions
$(call msg-gen, $@) $(call msg-gen, $@)
$(Q) $(MAKE) $(build)=c $@ $(Q) $(MAKE) $(build)=c $@
c/built-in.o:
$(call msg-gen, $@)
$(Q) $(MAKE) $(build)=c all
cflags-so += $(CFLAGS) -rdynamic -Wl,-soname,$(lib-so).so.$(CRIU_SO_VERSION_MAJOR) cflags-so += $(CFLAGS) -rdynamic -Wl,-soname,$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR)
ldflags-so += -lprotobuf-c ldflags-so += -lprotobuf-c
c/$(CRIU_SO): c/built-in.o c/$(CRIU_SO): c/built-in.o
$(call msg-link, $@) $(call msg-link, $@)
......
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