Tue Jun 23 06:28:51 1998 Matthew D Hancher <mdh@mit.edu>
authorMatthew Hancher <mdh@mit.edu>
Tue, 23 Jun 1998 10:31:49 +0000 (10:31 +0000)
committerMatthew Hancher <mdh@mit.edu>
Tue, 23 Jun 1998 10:31:49 +0000 (10:31 +0000)
* aclocal.m4: added a kluge to get shared libraries to build
        with gcc under Irix 6.3

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

src/aclocal.m4

index e98602e886e605a01867c4cf1ebc3d9f0d26d5e7..df432ee611f480bef7b4bb85d6da2fb77acd2b34 100644 (file)
@@ -1014,7 +1014,12 @@ mips-sgi-irix*)
        SHLIBSEXT='.so.$(LIBMAJOR)'
        SHLIBEXT=.so
        SHOBJEXT=.o
-       LDCOMBINE='ld -shared -ignore_unresolved -update_registry $(BUILDTOP)/so_locations -soname lib$(LIB)$(SHLIBSEXT)'
+       # Kludge follows:
+       if test "$GCC" = yes; then
+               LDCOMBINE='ld -n32 -shared -ignore_unresolved -update_registry $(BUILDTOP)/so_locations -soname lib$(LIB)$(SHLIBSEXT)'
+       else
+               LDCOMBINE='ld -shared -ignore_unresolved -update_registry $(BUILDTOP)/so_locations -soname lib$(LIB)$(SHLIBSEXT)'
+       fi
        SHLIB_EXPFLAGS='-rpath $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
        # no gprof for Irix...
        PROFFLAGS=-p