+Fri Feb 21 15:58:55 1997 Sam Hartman <hartmans@mit.edu>
+
+ * aclocal.m4 (CC_LINK_STATIC): Define appropriate flags to build
+ shared libs on AIX.
+
+
Fri Feb 21 12:00:53 1997 Theodore Y. Ts'o <tytso@mit.edu>
* aclocal.m4 (CC_LINK_SHARED): Linux doesn't understand -R; use
"-bWl,-rpath -Wl,$(PROG_RPATH)" instead.
+
Sun Feb 16 21:17:11 1997 Richard Basch <basch@lehman.com>
* Makefile.in: Build krb4 library under win16/win32
LIBLIST=
OBJLISTS=
else
- LIBLIST='lib$(LIB)$(STLIBEXT)'
- LIBLINKS='$(TOPLIBD)/lib$(LIB)$(STLIBEXT)'
+ LIBLIST="lib\$(LIB)$STLIBEXT"
+ LIBLINKS="\$(TOPLIBD)/lib\$(LIB)$STLIBEXT"
OBJLISTS=OBJS.ST
LIBINSTLIST=install-static
DEPLIBEXT=$STLIBEXT
LIBINSTLIST="$LIBINSTLIST install-shared"
DEPLIBEXT=$SHLIBEXT
CC_LINK="$CC_LINK_SHARED"
+ if test "$STLIBEXT" = "$SHLIBEXT" ; then
+ STLIBEXT=".a-no-build"
+ LIBINSTLIST="install-shared" #don't install static
+ fi
;;
esac
else
CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,-rpath -Wl,$(PROG_RPATH)'
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
;;
+*-*-aix*)
+ SHLIBVEXT='.a.$(LIBMAJOR).$(LIBMINOR)'
+ SHLIBEXT=.a
+ # AIX doesn't need separate PIC objects
+ SHOBJEXT=.o
+ LDCOMBINE='$(BUILDTOP)/util/makeshlib $(LIBMAJOR).$(LIBMINOR)'
+ SHLIB_EXPFLAGS=' $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
+ PROFFLAGS=-pg
+ if test "$gcc" = "yes" ; then
+ CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Xlinker -bex4:$(BUILDTOP)/util/aix.bincmds '
+ else
+ CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -bex4:$(BUILDTOP)/util/aix.bincmds '
+ fi
+ CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
+ # $(PROG_RPATH) is here to handle things like a shared tcl library
+ RUN_ENV='LIBPATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`:$(PROG_RPATH):/usr/lib:/usr/local/lib; export LIBPATH; '
+
esac])
+
+