diff options
author | Adrian Reber <adrian@lisas.de> | 2014-02-05 18:28:00 +0400 |
---|---|---|
committer | Pavel Emelyanov <xemul@parallels.com> | 2014-02-07 15:35:20 +0400 |
commit | b0e6ebc1c7a529dfc3073c26f2a18733a1088458 (patch) | |
tree | 5854eac50e587b972cd0577665327603d5862db0 /lib | |
parent | e18ae2a8f5447d5f33de2af8a1c604bf0be986c3 (diff) |
Makefile: add soname to libcriu.so
Using a soname makes it easy for applications to
detect if the ABI of libcriu.so has changed.
It still creates libcriu.so as before in lib. During
'make install' additional links are created:
libcriu.so -> libcriu.so.1.0
libcriu.so.1 -> libcriu.so.1.0
Signed-off-by: Adrian Reber <adrian@lisas.de>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile index e9beaceee..aec6d841a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,10 +1,10 @@ -lib-so += libcriu +lib-so += $(CRIU-SO) obj-y += criu.o obj-ext-src-y += protobuf/rpc.pb-c.o 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 +cflags-so += -rdynamic -Wl,-soname,$(lib-so).so.$(VERSION_SO_MAJOR) ldflags-so += -lprotobuf-c .SECONDARY: |