Pass the extra library dependency on AIX (is this even still needed??) via a new
authorKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:09:09 +0000 (23:09 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:09:09 +0000 (23:09 +0000)
variable instead of by updating LIBS at configure time.

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

src/plugins/kdb/db2/Makefile.in
src/plugins/kdb/db2/configure.in

index ea949d750c9310736754349536d69ac6b64072d6..c7703c6df80077ca7d9553f839ab43da695af53e 100644 (file)
@@ -34,7 +34,7 @@ SHLIB_EXPDEPS = \
        $(GSSRPC_DEPLIBS) \
        $(TOPLIBD)/libk5crypto$(SHLIBEXT) \
        $(TOPLIBD)/libkrb5$(SHLIBEXT)
-SHLIB_EXPLIBS= $(GSSRPC_LIBS) -lkrb5 -lcom_err -lk5crypto $(KDB5_DB_LIB) $(SUPPORT_LIB) $(LIBS)
+SHLIB_EXPLIBS= $(GSSRPC_LIBS) -lkrb5 -lcom_err -lk5crypto $(KDB5_DB_LIB) $(SUPPORT_LIB) $(LIBS) @DB_EXTRA_LIBS@
 
 SHLIB_DIRS=-L$(TOPLIBD)
 SHLIB_RDIRS=$(KRB5_LIBDIR)
index fb1ce00313b905d476d4e4e556da526c58038bcc..12bd9c01dcdb71bcebc755041cbbce29bd779ec8 100644 (file)
@@ -7,9 +7,13 @@ 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"
+       DB_EXTRA_LIBS=-ldb
+       ;;
+*)
+       DB_EXTRA_LIBS=
        ;;
 esac
+AC_SUBST(DB_EXTRA_LIBS)
 KRB5_RUN_FLAGS
 dnl The following is for check...
 KRB5_BUILD_PROGRAM