From eb1ceb71549c5201ae45b2546cd08109014f8fc9 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Fri, 26 Jul 1996 02:03:01 +0000 Subject: [PATCH] AIX shared libraries treat resolution of imported symbols different from resolution of external non-imported symbols. Therefore, we really want to link against libdb.a at shared library creation time. Instead of linking on all platforms and making libdb.a a shared library, I have chosen to only link on AIX where it will work and not generate a problem even if the application later linksgainst libdb.a because making libdb.a a shared library would make it harder to distribute util/db2. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8829 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/srv/ChangeLog | 6 ++++++ src/lib/kadm5/srv/configure.in | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/src/lib/kadm5/srv/ChangeLog b/src/lib/kadm5/srv/ChangeLog index f91603f80..0011ab863 100644 --- a/src/lib/kadm5/srv/ChangeLog +++ b/src/lib/kadm5/srv/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 25 18:42:47 1996 Sam Hartman + + * configure.in (LIBS): Link against -ldb under AIX for shared + library construction; we should eventually make libdb a shared + library. + Wed Jul 24 18:21:28 1996 Tom Yu * Makefile.in, configure.in: break out server lib into a diff --git a/src/lib/kadm5/srv/configure.in b/src/lib/kadm5/srv/configure.in index f17fd5cbb..0e625c481 100644 --- a/src/lib/kadm5/srv/configure.in +++ b/src/lib/kadm5/srv/configure.in @@ -17,6 +17,14 @@ else fi 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 V5_SHARED_LIB_OBJS V5_MAKE_SHARED_LIB(libkadm5srv, 1.0, ../.., ./kadm5/srv) -- 2.26.2