[CRIU] [PATCH 2/3] build: lib -- Fix building for C library
Cyrill Gorcunov
gorcunov at openvz.org
Thu Feb 18 01:43:28 PST 2016
- drop unneeded @built-in.o rule
- use proper @CRIU_SO for -soname option
- add dep on version change
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
lib/Makefile | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
index 03229be98d7d..34dd3b8e46b6 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -5,14 +5,11 @@ CRIU_SO := libcriu.so
#
# C language bindings.
-c/%:
+c/%: ../Makefile.versions
$(call msg-gen, $@)
$(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
c/$(CRIU_SO): c/built-in.o
$(call msg-link, $@)
--
2.5.0
More information about the CRIU
mailing list