From 1bde493ebc2189e772d085d59ee47cf85fdb4644 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 29 Oct 1996 20:40:31 +0000 Subject: [PATCH] * makeshlib.sh: Allow stuffing of SONAME field in shared lib if gcc is being used; this requires newer (2.7.0?) gcc and possibly binutils (2.6?) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9247 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/ChangeLog | 6 ++++++ src/util/makeshlib.sh | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 88c4ce617..4f2a76b08 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,9 @@ +Tue Oct 29 15:39:12 1996 Tom Yu + + * makeshlib.sh: Allow stuffing of SONAME field in shared lib if + gcc is being used; this requires newer (2.7.0?) gcc and possibly + binutils (2.6?) + Mon Oct 21 21:23:15 1996 Tom Yu * Makefile.in: Fixes for new subdir recursion method. diff --git a/src/util/makeshlib.sh b/src/util/makeshlib.sh index 4507ad269..74c73b705 100644 --- a/src/util/makeshlib.sh +++ b/src/util/makeshlib.sh @@ -58,6 +58,10 @@ mips-sni-sysv4) optflags="" if test "$HAVE_GCC"x = "x" ; then optflags="-h $library" + else + # XXX assumes that we're either using + # recent gld (binutils 2.7?) or else using native ld + optflags="-Wl,-h -Wl,$library" fi ldflags="`echo $ldflags | sed -e 's/-R /-R/g'`" @@ -74,6 +78,10 @@ mips-sni-sysv4) optflags="" if test "$HAVE_GCC"x = "x" ; then optflags="-h $library" + else + # XXX assumes that we're either using + # recent gld (binutils 2.7?) or else using native ld + optflags="-Wl,-h -Wl,$library" fi echo $CC -G $ldflags -o $library $optflags $FILES $libdirfl $liblist @@ -89,6 +97,10 @@ mips-sni-sysv4) optflags="" if test "$HAVE_GCC"x = "x" ; then optflags="-h $library" + else + # XXX assumes that we're either using + # recent gld (binutils 2.7?) or else using native ld + optflags="-Wl,-h -Wl,$library" fi echo ld -dp -assert pure-text $ldflags -o $library $optflags $FILES $libdirfl -- 2.26.2