Fixed typos that prevent static libs from working. Add code
authorSam Hartman <hartmans@mit.edu>
Fri, 23 Jun 1995 17:34:54 +0000 (17:34 +0000)
committerSam Hartman <hartmans@mit.edu>
Fri, 23 Jun 1995 17:34:54 +0000 (17:34 +0000)
to Makefile so shared libs work on non-AIX platforms.

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

src/util/et/Makefile.in
src/util/et/configure.in

index 7e40622f65ae1eced7087a6aede72fa8a6404110..e0a6635880a33fccc36a153eb9e1d3b52ccd38cc 100644 (file)
@@ -5,6 +5,10 @@ SED = sed
 ##DOSLIBNAME=comerr.lib
 ##DOS!include $(BUILDTOP)\config\windows.in
 
+.c.o:
+       $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
 LIBDONE=DONE
 LIB_SUBDIRS=.
 INSTALLFILE = cp
@@ -53,8 +57,10 @@ com_err.o: com_err.c
 # real entries...
 #
 
-all-unix:: compile_et includes
+all-unix:: compile_et includes shared
 all-mac:: libcom_err.a
+shared:
+        mkdir shared
 
 # The real compile_et just isn't portable.  (But then again, anything using 
 # lex and yacc isn't portable by definition.  :-(  )
index 717dfc09245823be2d26cfab30f24040fcb3890b..192733d7d7cb3e87931075254470b239516d61f6 100644 (file)
@@ -24,6 +24,7 @@ AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR))
 AC_CHECK_HEADERS(stdarg.h)
 AC_HAVE_HEADERS(stdlib.h)
 CopySrcHeader(com_err.h,$(BUILDTOP)/include)
+V5_SHARED_LIB_OBJS
 V5_MAKE_SHARED_LIB(libcom_err)
 AC_ARG_ENABLE([shared],
 [  --enable-shared         build shared libraries],[
@@ -33,7 +34,7 @@ AppendRule([install:: libcom_err.[$](SHEXT)
        [$](INSTALL_DATA) libcom_err.[$](SHEXT) \
                [$](DESTDIR)[$](KRB5_SHLIBDIR)[$](S)libcom_err.[$](SHEXT)])
 ])dnl
-if test -n "$krb5_cv_enable_staticlibs" ; then
+if test -n "$krb5_cv_staticlibs_enabled" ; then
         AppendRule([install:: libcom_err.[$](STEXT)
        [$](INSTALL_DATA) libcom_err.[$](STEXT) [$](DESTDIR)[$](KRB5_LIBDIR)[$](S)libcom_err.[$](STEXT)])
         LinkFileDir([$](TOPLIBD)/libcom_err.[$](STEXT),libcom_err.[$](STEXT),../util/et)