From: Sam Hartman Date: Mon, 5 Aug 1996 18:14:54 +0000 (+0000) Subject: * AIX shared library fix: get -ldb not dbm X-Git-Tag: krb5-1.0-beta7~178 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33c7ad1aea479bf7db820df20862e33fdbd86d51;p=krb5.git * AIX shared library fix: get -ldb not dbm git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8904 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index aac1b5a1e..9531626a9 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,12 @@ +Fri Aug 2 14:08:03 1996 Sam Hartman + + * configure.in(LIBS): AIX wants to link against -ldb when building the shared lib. + +Mon Jul 29 23:07:14 1996 Samuel D Hartman (hartmans@vorlon) + + * kdb_dbm.c: Don't bother referencing dbm_pagfno, because we don't + actually use it; same for dbm_dirfno. + Tue Jul 23 11:09:08 1996 Ezra Peisach * Makefile.in: libkdb5.so needs to be built with diff --git a/src/lib/kdb/Makefile.in b/src/lib/kdb/Makefile.in index 1e206c874..296c93877 100644 --- a/src/lib/kdb/Makefile.in +++ b/src/lib/kdb/Makefile.in @@ -6,7 +6,7 @@ CRYPTO_VER=@CRYPTO_SH_VERS@ DEPLIBS=$(TOPLIBD)/libkrb5.$(SHEXT).$(KRB5_VER) \ $(TOPLIBD)/libcrypto.$(SHEXT).$(CRYPTO_VER) -SHLIB_LIBS=-lkrb5 -lcrypto +SHLIB_LIBS=$(LIBS) SHLIB_LDFLAGS= $(LDFLAGS) @SHLIB_RPATH_DIRS@ SHLIB_LIBDIRS= @SHLIB_LIBDIRS@ diff --git a/src/lib/kdb/configure.in b/src/lib/kdb/configure.in index 3758bcefc..75c4e40c8 100644 --- a/src/lib/kdb/configure.in +++ b/src/lib/kdb/configure.in @@ -6,6 +6,16 @@ AC_PROG_RANLIB AC_PROG_INSTALL AC_HAVE_HEADERS(unistd.h) AC_CHECK_FUNCS(srand48 srand srandom umask) + +AC_CHECK_FUNCS(re_comp re_exec regcomp regexec) +dnl AIX is unusual in that it wants all symbols resolved at link time +dnl Fortunately, it will allow us to link the kdb library now, even if +dnl it is linked again later. +case $krb5_cv_host in +*-*-aix*) + LIBS="$LIBS -ldb" + ;; +esac KRB5_RUN_FLAGS V5_USE_SHARED_LIB KRB5_LIBRARIES