use $(CC) rather than ld to build shared libs on tru64 and irix
authorTom Yu <tlyu@mit.edu>
Wed, 18 Feb 2004 20:43:59 +0000 (20:43 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 18 Feb 2004 20:43:59 +0000 (20:43 +0000)
* shlib.conf (alpha-*-dec-osf*, mips-sgi-irix*): Use $(CC) instead
of ld for building shared libraries.

ticket: new
component: krb5-build

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16097 dc483132-0cff-0310-8789-dd5450dbe970

src/config/ChangeLog
src/config/shlib.conf

index 778d89e3da331e96bc3eeb46fc480f5edc9ece5f..2b0ff32d436cac82dde2a0782aaefd92e25251ef 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-18  Tom Yu  <tlyu@mit.edu>
+
+       * shlib.conf (alpha-*-dec-osf*, mips-sgi-irix*): Use $(CC) instead
+       of ld for building shared libraries.
+
 2004-02-12  Tom Yu  <tlyu@mit.edu>
 
        * shlib.conf (*-*-solaris-*): Remove exitsleep.
index ed41bd8fcec028d1134ab4ec6e64bc603a08ff29..27aa9ed0c38cdacac1b6f9a0631605ea44389e28 100644 (file)
@@ -25,7 +25,7 @@ alpha*-dec-osf*)
        SHLIBEXT=.so
        # Alpha OSF/1 doesn't need separate PIC objects
        SHOBJEXT=.o
-       LDCOMBINE='ld -shared -expect_unresolved \* -update_registry $(BUILDTOP)/so_locations -soname lib$(LIB)$(SHLIBSEXT)'
+       LDCOMBINE='$(CC) -shared -Wl,-expect_unresolved -Wl,\* -Wl,-update_registry -Wl,$(BUILDTOP)/so_locations -Wl,-soname -Wl,lib$(LIB)$(SHLIBSEXT)'
        SHLIB_EXPFLAGS='-rpath $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
        PROFFLAGS=-pg
        RPATH_FLAG='-Wl,-rpath -Wl,'
@@ -118,7 +118,7 @@ mips-sgi-irix*)
        SHLIBSEXT='.so.$(LIBMAJOR)'
        SHLIBEXT=.so
        SHOBJEXT=.o
-       LDCOMBINE='ld -shared -ignore_unresolved -update_registry $(BUILDTOP)/so_locations -soname lib$(LIB)$(SHLIBSEXT)'
+       LDCOMBINE='$(CC) -shared -Wl,-ignore_unresolved -Wl,-update_registry -Wl,$(BUILDTOP)/so_locations -Wl,-soname -Wl,lib$(LIB)$(SHLIBSEXT)'
        SHLIB_EXPFLAGS='-rpath $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
        # no gprof for Irix...
        PROFFLAGS=-p