1 Define and use a soname -- because we have to care about binary
2 compatibility, we have to increment the soname in order to allow
3 this version to co-exist with another versions and have everything
6 diff -up openssl-0.9.8g/Configure.soversion openssl-0.9.8g/Configure
7 --- openssl-0.9.8g/Configure.soversion 2007-12-03 14:41:19.000000000 +0100
8 +++ openssl-0.9.8g/Configure 2007-12-03 14:41:19.000000000 +0100
9 @@ -1371,7 +1371,7 @@ while (<IN>)
10 elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/)
13 - s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
14 + s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_SONAMEVER) .s$sotmp/;
16 elsif ($shared_extension ne "" && $shared_extension =~ /^\.[^\.]*\.[^\.]*\.dylib$/)
18 diff -up openssl-0.9.8g/Makefile.org.soversion openssl-0.9.8g/Makefile.org
19 --- openssl-0.9.8g/Makefile.org.soversion 2007-12-03 14:41:19.000000000 +0100
20 +++ openssl-0.9.8g/Makefile.org 2007-12-03 14:41:19.000000000 +0100
21 @@ -10,6 +10,7 @@ SHLIB_VERSION_HISTORY=
29 @@ -277,10 +278,9 @@ clean-shared:
31 @ set -e; for i in ${SHLIBDIRS}; do \
32 $(MAKE) -f $(HERE)/Makefile.shared -e $(BUILDENV) \
33 - LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
34 + LIBNAME=$$i LIBVERSION=${SHLIB_SONAMEVER} \
35 LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
36 symlink.$(SHLIB_TARGET); \
37 - libs="$$libs -l$$i"; \
40 build-shared: do_$(SHLIB_TARGET) link-shared
41 @@ -291,7 +291,7 @@ do_$(SHLIB_TARGET):
42 libs="$(LIBKRB5) $$libs"; \
44 $(CLEARENV) && $(MAKE) -f Makefile.shared -e $(BUILDENV) \
45 - LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
46 + LIBNAME=$$i LIBVERSION=${SHLIB_SONAMEVER} \
47 LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
48 LIBDEPS="$$libs $(EX_LIBS)" \
49 link_a.$(SHLIB_TARGET); \