From 0753f1b5364c4fe7169b9a836b0bc365ffd31300 Mon Sep 17 00:00:00 2001
From: ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 20 Nov 2002 15:59:07 +0000
Subject: [PATCH] 	* ltconfig (osf[345]): Append $major to soname_spec. 
 Reflect this in library_names_spec. 	* ltmain.sh (osf): Prefix $major with
 . for use as extension.

	boehm-gc:
	* ltconfig (osf[345]): Append $major to soname_spec.
	Reflect this in library_names_spec.
	* ltmain.sh (osf): Prefix $major with . for use as extension.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59306 138bc75d-0d04-0410-961f-82ee72b054a4
---
 ChangeLog          | 6 ++++++
 boehm-gc/ChangeLog | 6 ++++++
 boehm-gc/ltconfig  | 4 ++--
 boehm-gc/ltmain.sh | 2 +-
 ltconfig           | 4 ++--
 ltmain.sh          | 2 +-
 6 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1832fa493cda..df61247cdc09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+	* ltconfig (osf[345]): Append $major to soname_spec.
+	Reflect this in library_names_spec.
+	* ltmain.sh (osf): Prefix $major with . for use as extension.
+
 2002-11-19  Andreas Jaeger  <aj@suse.de>
 
 	* libtool.m4 (libtool_flags): Add patch from libtool CVS: Support
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index a0d5917e56ae..21d304df594e 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+	* ltconfig (osf[345]): Append $major to soname_spec.
+	Reflect this in library_names_spec.
+	* ltmain.sh (osf): Prefix $major with . for use as extension.
+
 2002-10-02  Andreas Jaeger  <aj@suse.de>
 
 	* include/private/gcconfig.h (HBLKSIZE): Define for x86-64.
diff --git a/boehm-gc/ltconfig b/boehm-gc/ltconfig
index a01334f9212c..b8eef56a9169 100755
--- a/boehm-gc/ltconfig
+++ b/boehm-gc/ltconfig
@@ -2017,8 +2017,8 @@ os2*)
 osf3* | osf4* | osf5*)
   version_type=osf
   need_version=no
-  soname_spec='${libname}${release}.so'
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
   shlibpath_var=LD_LIBRARY_PATH
   # this will be overridden with pass_all, but let us keep it just in case
   deplibs_check_method='file_magic COFF format alpha shared library'
diff --git a/boehm-gc/ltmain.sh b/boehm-gc/ltmain.sh
index 50515ad0b9ee..72699bea1c16 100644
--- a/boehm-gc/ltmain.sh
+++ b/boehm-gc/ltmain.sh
@@ -1715,7 +1715,7 @@ compiler."
 	  ;;
 
 	osf)
-	  major=`expr $current - $age`
+	  major=.`expr $current - $age`
 	  versuffix=".$current.$age.$revision"
 	  verstring="$current.$age.$revision"
 
diff --git a/ltconfig b/ltconfig
index 5ccefe0463e0..68be49bb2eec 100755
--- a/ltconfig
+++ b/ltconfig
@@ -1286,8 +1286,8 @@ os2*)
 osf3* | osf4* | osf5*)
   version_type=osf
   need_version=no
-  soname_spec='${libname}${release}.so'
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
   shlibpath_var=LD_LIBRARY_PATH
   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
diff --git a/ltmain.sh b/ltmain.sh
index 92526b60b795..5d4281c54d2d 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -2606,7 +2606,7 @@ EOF
 	  ;;
 
 	osf)
-	  major=`expr $current - $age`
+	  major=.`expr $current - $age`
 	  versuffix=".$current.$age.$revision"
 	  verstring="$current.$age.$revision"
 
-- 
GitLab