summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1995-10-02 18:31:13 +0000
committerEzra Peisach <epeisach@mit.edu>1995-10-02 18:31:13 +0000
commitc691b6f662c897619cdb321e404ff66d24da286d (patch)
tree9213631907caa91e1bf5910a0fbc8c146560b396
parentcc4c0a959f228e8f559bc8bc04e67c52b3816837 (diff)
downloadkrb5-c691b6f662c897619cdb321e404ff66d24da286d.tar.gz
krb5-c691b6f662c897619cdb321e404ff66d24da286d.tar.xz
krb5-c691b6f662c897619cdb321e404ff66d24da286d.zip
* makeshlib.sh: For solaris, if you are not using gcc, add the -h
argument to specify the name of the shared library to load. (i.e. libfoo.so.0.1). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6906 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/ChangeLog6
-rw-r--r--src/util/makeshlib.sh9
2 files changed, 13 insertions, 2 deletions
diff --git a/src/util/ChangeLog b/src/util/ChangeLog
index 428f56231..1b0dc0dbb 100644
--- a/src/util/ChangeLog
+++ b/src/util/ChangeLog
@@ -1,3 +1,9 @@
+Mon Oct 2 12:12:20 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * makeshlib.sh: For solaris, if you are not using gcc, add the -h
+ argument to specify the name of the shared library to
+ load. (i.e. libfoo.so.0.1).
+
Mon Sep 25 16:41:11 1995 Theodore Y. Ts'o <tytso@dcl>
* Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the
diff --git a/src/util/makeshlib.sh b/src/util/makeshlib.sh
index 20d3c3c06..4caa55ecc 100644
--- a/src/util/makeshlib.sh
+++ b/src/util/makeshlib.sh
@@ -31,8 +31,13 @@ case $host in
sed -e "s;^;$i/shared/;" -e "s; ; $i/shared/;g" $i/DONE
done`
- echo $CC -G $ldflags -o $library $FILES $libdirfl $liblist
- $CC -G $ldflags -o $library $FILES $libdirfl $liblist
+ optflags=""
+ if test "$HAVE_GCC"x = "x" ; then
+ optflags="-h $library"
+ fi
+
+ echo $CC -G $ldflags -o $library $optflags $FILES $libdirfl $liblist
+ $CC -G $ldflags -o $library $optflags $FILES $libdirfl $liblist
stat=$?
;;
*-*-aix*)