]> git.pld-linux.org Git - packages/cryptlib.git/blob - cryptlib-soname.patch
- set libcl soname
[packages/cryptlib.git] / cryptlib-soname.patch
1 --- cryptlib-3.3.1/tools/buildsharedlib.sh.orig 2006-11-14 04:48:16.000000000 +0100
2 +++ cryptlib-3.3.1/tools/buildsharedlib.sh      2008-01-08 19:51:52.529507506 +0100
3 @@ -63,6 +63,8 @@ fi
4  OSNAME=$1
5  LIBNAME=$2
6  LD=$3
7 +SONAME=$4
8 +shift
9  shift
10  shift
11  shift
12 @@ -97,6 +99,9 @@ case $OSNAME in
13                 fi
14                 strip $LIBNAME ;;
15  
16 +       'Linux')
17 +               $LD -shared -o $LIBNAME `cat $LINKFILE` `./tools/getlibs.sh autodetect` -Wl,-soname=${SONAME:-${LIBNAME}}
18 +               ;;
19         *)
20                 $LD -shared -o $LIBNAME `cat $LINKFILE` `./tools/getlibs.sh autodetect` ;
21                 strip $LIBNAME ;;
22 --- cryptlib-3.3.1/makefile.orig        2008-01-08 19:54:03.372389284 +0100
23 +++ cryptlib-3.3.1/makefile     2008-01-08 19:53:33.007613619 +0100
24 @@ -36,6 +36,7 @@
25  PROJ   = cl
26  LIBNAME        = lib$(PROJ).a
27  SLIBNAME = lib$(PROJ).so.$(MAJ).$(MIN).$(PLV)
28 +SONAME = lib$(PROJ).so.$(MAJ)
29  DYLIBNAME = lib$(PROJ).$(MAJ).$(MIN).dylib
30  
31  # Compiler options.  By default this builds the release version of the code,
32 @@ -1200,7 +1201,7 @@
33  
34  
35  $(SLIBNAME):   $(OBJS) $(EXTRAOBJS) $(TESTOBJS)
36 -                               @./tools/buildsharedlib.sh $(OSNAME) $(SLIBNAME) $(LD) $(OBJS) \
37 +                               @./tools/buildsharedlib.sh $(OSNAME) $(SLIBNAME) $(LD) $(SONAME) $(OBJS) \
38                                         $(EXTRAOBJS)
39  
40  $(DYLIBNAME):  $(OBJS) $(EXTRAOBJS) $(TESTOBJS)
This page took 0.077598 seconds and 3 git commands to generate.