1999-02-05 12:16:44 +00:00
|
|
|
--- klibtool.orig Fri Dec 12 18:53:46 1997
|
|
|
|
+++ klibtool Fri Feb 5 20:44:55 1999
|
|
|
|
@@ -371,7 +371,7 @@
|
|
|
|
ot_args=`eval echo '$'args_SHARED_archive`
|
|
|
|
ot_prog=`eval echo '$'prog_SHARED_archive`
|
|
|
|
test -z "$ot_prog" && ot_prog=$CC
|
|
|
|
- cmdname="$ot_prog $ot_args -o"
|
|
|
|
+ cmdname="$ot_prog $ot_args"
|
|
|
|
$verbose "$0: replaced $old_ar with $cmdname."
|
|
|
|
fi
|
|
|
|
|
1999-08-25 19:30:28 +00:00
|
|
|
@@ -397,6 +397,20 @@
|
1999-02-05 12:16:44 +00:00
|
|
|
lib_dir=.
|
|
|
|
fi
|
|
|
|
lib_basename=`basename $libname`
|
|
|
|
+ if test $ot = SHARED; then
|
1999-08-25 19:30:28 +00:00
|
|
|
+if [ -x /sbin/sysctl ]
|
|
|
|
+then
|
|
|
|
+ OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
|
|
|
+else
|
|
|
|
+ OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
|
|
|
+fi
|
|
|
|
+if [ $OSVERSION -ge 300000 ]
|
|
|
|
+then
|
1999-02-05 12:16:44 +00:00
|
|
|
+ cmdname="$cmdname -Wl,-soname,$lib_basename -o"
|
1999-08-25 19:30:28 +00:00
|
|
|
+else
|
|
|
|
+ cmdname="$cmdname -o"
|
|
|
|
+fi
|
1999-02-05 12:16:44 +00:00
|
|
|
+ fi
|
|
|
|
lib_base=`echo $lib_basename | sed 's/[.0-9]*$//'`
|
|
|
|
|
|
|
|
# We might have to run a command after making the library.
|
|
|
|
@@ -669,7 +672,7 @@
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
$verbose "$0: dir = $dir, libname = $libname."
|
|
|
|
- version=`awk '$1 == "'$libname'" { print "." $2 "." $3 "." $4 }' $verfile`
|
|
|
|
+ version=`awk '$1 == "'$libname'" { print "." $2 }' $verfile`
|
|
|
|
$verbose "$0: version for $libname = $version."
|
|
|
|
echo $version
|
|
|
|
;;
|