From: Sam Hartman Date: Fri, 23 Jun 1995 17:34:54 +0000 (+0000) Subject: Fixed typos that prevent static libs from working. Add code X-Git-Tag: krb5-1.0-beta6~1666 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23a6e83b734a599eae7e17f243fa9b4e52fde870;p=krb5.git Fixed typos that prevent static libs from working. Add code 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 --- diff --git a/src/util/et/Makefile.in b/src/util/et/Makefile.in index 7e40622f6..e0a663588 100644 --- a/src/util/et/Makefile.in +++ b/src/util/et/Makefile.in @@ -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. :-( ) diff --git a/src/util/et/configure.in b/src/util/et/configure.in index 717dfc092..192733d7d 100644 --- a/src/util/et/configure.in +++ b/src/util/et/configure.in @@ -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)