Added shell script for creating shared libraries
authorTheodore Tso <tytso@mit.edu>
Fri, 26 May 1995 01:39:37 +0000 (01:39 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 26 May 1995 01:39:37 +0000 (01:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5881 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ChangeLog
src/util/makeshlib [new file with mode: 0644]

index 03e4ab832d40a19bd49621c9062d4ea8ab674972..9906a4a7c52bad33e9b01932c7533bb3af189630 100644 (file)
@@ -1,3 +1,7 @@
+Thu May 25 21:39:02 1995  Theodore Y. Ts'o  (tytso@dcl)
+
+       * makeshlib: Added shell script for creating shared libraries
+
 Tue May  2 21:32:23 1995  Tom Yu  (tlyu@dragons-lair)
 
        * Makefile.in: remove spurious whitespace from blank line
diff --git a/src/util/makeshlib b/src/util/makeshlib
new file mode 100644 (file)
index 0000000..1c7a06b
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# makeshlib: Make a shared library.....
+#
+# Usage: makeshlib <host> <CC> <library> <directories>
+#
+
+host=$1 ; shift
+CC=$1 ; shift
+library=$1 ; shift
+
+case $host in
+*-*-solaris*)
+       FILES=`for i 
+       do
+               sed -e "s;^;$i/shared/;" -e "s; ; $i/shared/;g" $i/DONE
+       done`
+
+       echo $CC -G -o $library $FILES
+       $CC -G -o $library $FILES
+       ;;
+*)
+       echo "Host type $host not supported!"
+       exit 1
+esac