From b5a3b26501fb405ff621b71b7db84a3fa91b0b2d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 25 Mar 2007 23:09:09 +0000 Subject: [PATCH] Pass the extra library dependency on AIX (is this even still needed??) via a new 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 | 2 +- src/plugins/kdb/db2/configure.in | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/kdb/db2/Makefile.in b/src/plugins/kdb/db2/Makefile.in index ea949d750..c7703c6df 100644 --- a/src/plugins/kdb/db2/Makefile.in +++ b/src/plugins/kdb/db2/Makefile.in @@ -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) diff --git a/src/plugins/kdb/db2/configure.in b/src/plugins/kdb/db2/configure.in index fb1ce0031..12bd9c01d 100644 --- a/src/plugins/kdb/db2/configure.in +++ b/src/plugins/kdb/db2/configure.in @@ -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 -- 2.26.2