blob: 34cd56567c4391a07de460536ae0459f1a04b8f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- lib/Makefile 2012-05-03 21:11:04.000000000 +0400
+++ lib/Makefile 2012-05-03 21:10:47.000000000 +0400
@@ -2,6 +2,7 @@
LIBPLOOP=libploop.a
LIBPLOOP_DYN = libploop.so
+SONAME = $(LIBPLOOP_DYN).0
LIBOBJS=uuid.o \
delta_read.o \
delta_sysfs.o \
@@ -36,7 +37,7 @@
$(LIBPLOOP_DYN): $(LIBOBJS)
$(E) " LINK " $@
- $(Q) $(CC) $(CFLAGS) $(INC) $(LDFLAGS) -shared $^ ${LDLIBS} -o $@
+ $(Q) $(CC) $(CFLAGS) $(INC) $(LDFLAGS) -shared $^ ${LDLIBS} -o $@ -Wl,-soname,$(SONAME)
.depend: $(SOURCES)
-include .depend
|