summaryrefslogtreecommitdiffstats
path: root/src/aclocal.m4
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-06-28 14:07:07 +0000
committerGreg Hudson <ghudson@mit.edu>2011-06-28 14:07:07 +0000
commitbc359880c203d769e230e3285af2512d22fc62aa (patch)
tree462450dc407c324baadc0526a3175129630aed9d /src/aclocal.m4
parentb3306310689d72dd1b6284150f70a068dfd98865 (diff)
downloadkrb5-bc359880c203d769e230e3285af2512d22fc62aa.tar.gz
krb5-bc359880c203d769e230e3285af2512d22fc62aa.tar.xz
krb5-bc359880c203d769e230e3285af2512d22fc62aa.zip
Get static linking working again, mostly
Static linking (#6510) broke when lockout support was added because the DB2 plugin became dependent on libkadm5srv_mit for XDR functions. Also, static linking was extensively broken in combination with LDAP support. Fix these problems. Afer these fixes, the test suite fails in the FAST tests because there's no static build support for dynamic preauth plugins, which means there's no encrypted challenge. (And unlike the pkinit tests, the test suite doesn't conditionalize on the presence of the encrypted challenge plugin, because we always build it.) This will fix itself if and when encrypted challenge becomes linked into the consumers, or static build support is added for preauth plugins. ticket: 6914 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24996 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r--src/aclocal.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 57a0a38d99..a56e7ec5e8 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -1149,9 +1149,13 @@ if test "x$enable_static" = xyes; then
KDB5_PLUGIN_DEPLIBS='$(TOPLIBD)/libkrb5_db2$(DEPLIBEXT)'
KDB5_PLUGIN_LIBS='-lkrb5_db2'
if test "x$OPENLDAP_PLUGIN" = xyes; then
- KDB5_PLUGIN_DEBLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkrb5_ldap$(DEPLIBEXT)'
- KDB5_PLUGIN_LIBS=$KDB_LUGIN_LIBS' -lkrb5_ldap'
+ KDB5_PLUGIN_DEBLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkrb5_ldap$(DEPLIBEXT) $(TOPLIBD)/libkdb_ldap$(DEPLIBEXT)'
+ KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkrb5_kldap -lkdb_ldap $(LDAP_LIBS)'
fi
+ # kadm5srv_mit normally comes before kdb on the link line. Add it
+ # again after the KDB plugins, since they depend on it for XDR stuff.
+ KDB5_PLUGIN_DEPLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkadm5srv_mit$(DEPLIBEXT)'
+ KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkadm5srv_mit'
# avoid duplicate rules generation for AIX and such
SHLIBEXT=.so-nobuild