diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2016-02-18 12:43:28 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2016-02-18 14:15:12 +0300 |
commit | c1f31142f81eb952359e664c61b09ae6ff868220 (patch) | |
tree | 09106833c24fd7a039c3aadbb77243e98e305acb | |
parent | 4854940d6f89620f98a0414969bfe52cd07bf66c (diff) |
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: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
-rw-r--r-- | lib/Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Makefile b/lib/Makefile index 03229be98..34dd3b8e4 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, $@) |