From c691b6f662c897619cdb321e404ff66d24da286d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 2 Oct 1995 18:31:13 +0000 Subject: [PATCH] * 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 --- src/util/ChangeLog | 6 ++++++ src/util/makeshlib.sh | 9 +++++++-- 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 + + * 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 * 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*) -- 2.26.2