111 lines
3.8 KiB
Diff
111 lines
3.8 KiB
Diff
|
diff -Nru mISDNuser-1_1_9.orig/i4lnet/Makefile mISDNuser-1_1_9/i4lnet/Makefile
|
||
|
--- mISDNuser-1_1_9.orig/i4lnet/Makefile 2008-11-18 12:35:09.000000000 +0100
|
||
|
+++ mISDNuser-1_1_9/i4lnet/Makefile 2009-08-28 14:30:18.835179949 +0200
|
||
|
@@ -2,12 +2,18 @@
|
||
|
AR = ar
|
||
|
RANLIB = ranlib
|
||
|
|
||
|
-all: libisdnnet.a libisdnnet_pic.a libisdnnet.so
|
||
|
+SOMAJOR=0
|
||
|
+SOMINOR=0.0
|
||
|
+SOVERSION=$(SOMAJOR).$(SOMINOR)
|
||
|
+
|
||
|
+all: libisdnnet.a libisdnnet_pic.a libisdnnet.so.$(SOVERSION)
|
||
|
|
||
|
install:
|
||
|
install -m 644 libisdnnet.a $(INSTALL_PREFIX)/usr/lib
|
||
|
install -m 644 libisdnnet_pic.a $(INSTALL_PREFIX)/usr/lib
|
||
|
- install -m 644 libisdnnet.so $(INSTALL_PREFIX)/usr/lib
|
||
|
+ install -m 755 libisdnnet.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib/
|
||
|
+ ln -sf libisdnnet.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib/libisdnnet.so.$(SOMAJOR)
|
||
|
+ ln -sf libisdnnet.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib/libisdnnet.so
|
||
|
cp *.h $(INSTALL_PREFIX)/usr/include/mISDNuser/
|
||
|
|
||
|
ISDNNET_OBJ = net_if.o isdn_debug.o isdn_msg.o fsm.o net_l2.o tei.o net_l3.o \
|
||
|
@@ -27,8 +33,8 @@
|
||
|
$(AR) cru $@ $^
|
||
|
$(RANLIB) $@
|
||
|
|
||
|
-libisdnnet.so: $(ISDNNET_OBJ)
|
||
|
- $(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $^
|
||
|
+libisdnnet.so.$(SOVERSION): $(ISDNNET_OBJ)
|
||
|
+ $(CC) $(CFLAGS) -shared -Xlinker -x -Wl,-soname,libisdnnet.so.$(SOVERSION) -o $@ $^
|
||
|
|
||
|
.c.o:
|
||
|
$(CC) $(CFLAGS) -o $@ -c $<
|
||
|
diff -Nru mISDNuser-1_1_9.orig/lib/Makefile mISDNuser-1_1_9/lib/Makefile
|
||
|
--- mISDNuser-1_1_9.orig/lib/Makefile 2008-11-18 12:35:09.000000000 +0100
|
||
|
+++ mISDNuser-1_1_9/lib/Makefile 2009-08-28 14:29:56.945929917 +0200
|
||
|
@@ -2,10 +2,16 @@
|
||
|
AR = ar
|
||
|
RANLIB = ranlib
|
||
|
|
||
|
-all: libmISDN.a libmISDN_pic.a libmISDN.so
|
||
|
+SOMAJOR=0
|
||
|
+SOMINOR=0.0
|
||
|
+SOVERSION=$(SOMAJOR).$(SOMINOR)
|
||
|
+
|
||
|
+all: libmISDN.a libmISDN_pic.a libmISDN.so.$(SOVERSION)
|
||
|
|
||
|
install:
|
||
|
- install -m 644 libmISDN.so $(INSTALL_PREFIX)/usr/lib
|
||
|
+ install -m 755 libmISDN.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib
|
||
|
+ ln -s libmISDN.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib/libmISDN.so.$(SOMAJOR)
|
||
|
+ ln -s libmISDN.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib/libmISDN.so
|
||
|
install -m 644 libmISDN_pic.a $(INSTALL_PREFIX)/usr/lib
|
||
|
install -m 644 libmISDN.a $(INSTALL_PREFIX)/usr/lib
|
||
|
|
||
|
@@ -24,8 +30,8 @@
|
||
|
$(AR) cru $@ $^
|
||
|
$(RANLIB) $@
|
||
|
|
||
|
-libmISDN.so: $(LIBMISDN_OBJS)
|
||
|
- $(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $^
|
||
|
+libmISDN.so.$(SOVERSION): $(LIBMISDN_OBJS)
|
||
|
+ $(CC) $(CFLAGS) -shared -Xlinker -x -Wl,-soname,libmISDN.so.$(SOMAJOR) -o $@ $^
|
||
|
|
||
|
.c.o:
|
||
|
$(CC) $(CFLAGS) -o $@ -c $<
|
||
|
diff -Nru mISDNuser-1_1_9.orig/suppserv/Makefile mISDNuser-1_1_9/suppserv/Makefile
|
||
|
--- mISDNuser-1_1_9.orig/suppserv/Makefile 2008-11-18 12:35:09.000000000 +0100
|
||
|
+++ mISDNuser-1_1_9/suppserv/Makefile 2009-08-28 14:31:52.616180077 +0200
|
||
|
@@ -2,19 +2,25 @@
|
||
|
AR = ar
|
||
|
RANLIB = ranlib
|
||
|
|
||
|
+SOMAJOR=0
|
||
|
+SOMINOR=0.0
|
||
|
+SOVERSION=$(SOMAJOR).$(SOMINOR)
|
||
|
+
|
||
|
#CFLAGS += -DASN1_DEBUG
|
||
|
|
||
|
SUPPSERV_OBJ = asn1.o asn1_enc.o asn1_generic.o asn1_aoc.o asn1_basic_service.o asn1_comp.o asn1_diversion.o asn1_address.o fac.o
|
||
|
SUPPSERV_PICOBJ = $(SUPPSERV_OBJ:%.o=%.lo)
|
||
|
|
||
|
-all: libsuppserv.a libsuppserv_pic.a libsuppserv.so
|
||
|
+all: libsuppserv.a libsuppserv_pic.a libsuppserv.so.$(SOVERSION)
|
||
|
|
||
|
main: $(SUPPSERVOBJ)
|
||
|
|
||
|
install:
|
||
|
install -m 644 libsuppserv.a $(INSTALL_PREFIX)/usr/lib
|
||
|
install -m 644 libsuppserv_pic.a $(INSTALL_PREFIX)/usr/lib
|
||
|
- install -m 644 libsuppserv.so $(INSTALL_PREFIX)/usr/lib
|
||
|
+ install -m 755 libsuppserv.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib
|
||
|
+ ln -s libsuppserv.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib/libsuppserv.so.$(SOMAJOR)
|
||
|
+ ln -s libsuppserv.so.$(SOVERSION) $(INSTALL_PREFIX)/usr/lib/libsuppserv.so
|
||
|
cp *.h $(INSTALL_PREFIX)/usr/include/mISDNuser/
|
||
|
|
||
|
libsuppserv_pic.a: $(SUPPSERV_PICOBJ)
|
||
|
@@ -25,8 +31,8 @@
|
||
|
$(AR) cru $@ $<
|
||
|
$(RANLIB) $@
|
||
|
|
||
|
-libsuppserv.so: $(SUPPSERV_OBJ)
|
||
|
- $(CC) -shared -Xlinker -x -o $@ $^
|
||
|
+libsuppserv.so.$(SOVERSION): $(SUPPSERV_OBJ)
|
||
|
+ $(CC) -shared -Xlinker -x -Wl,-soname,libsuppserv.so.$(SONAME) -o $@ $^
|
||
|
|
||
|
|
||
|
.c.o:
|