[krbdev.mit.edu #6510] SVN Commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Mon Jun 8 06:01:59 EDT 2009


Add enough static linking support to run the test suite without shared
libraries, to facilitate gcov and other kinds of instrumentation.  The
necessary changes include:

* Undo some of the changes which removed static linking support,
  and cannibalize the defunct krb5_force_static conditional block
  in aclocal.m4.
* Add --enable-static-only configure option.
* For plugins, use a different symbol name for static and dynamic
  builds, via a macro in k5plugin.h.
* Add build machinery for building static libraries for plugins
  (somewhat grotty due to the difference in names).
* Move plugin subdirs earlier in SUBDIRS in src/Makefile.in.
* Make the in-tree KDB5 plugins dependencies of libkdb5 in a static
  build (aclocal.m4 has to know what they are).
* In kdb5.c, cannibalize the broken _KDB5_STATIC_LINK support to
  allow "loading" of statically linked plugin libraries.

Preauth, authdata, locate, and GSSAPI plugins are not handled by this
change, as they are not currently necessary to the test suite.
Supporting GSSAPI plugins may be a bit tricky but the others should be
straightforward if they become needed.

$(STLIBEXT) changes from .a-nobuild to .a in a normal shared build as
a result of these changes (except on AIX where aclocal.m4 changes it).
This does not seem to be important as we avoid selecting the static
library for building via other means.


http://src.mit.edu/fisheye/changelog/krb5/?cs=22406
Commit By: ghudson
Revision: 22406
Changed Files:
U   trunk/src/Makefile.in
U   trunk/src/aclocal.m4
U   trunk/src/config/libnover.in
U   trunk/src/config/libpriv.in
U   trunk/src/config/pre.in
U   trunk/src/include/k5-plugin.h
U   trunk/src/lib/kdb/kdb5.c
U   trunk/src/plugins/authdata/greet/Makefile.in
U   trunk/src/plugins/kdb/db2/Makefile.in
U   trunk/src/plugins/kdb/db2/db2_exp.c
U   trunk/src/plugins/kdb/ldap/Makefile.in
U   trunk/src/plugins/kdb/ldap/ldap_exp.c
U   trunk/src/plugins/locate/python/Makefile.in
U   trunk/src/plugins/preauth/encrypted_challenge/Makefile.in
U   trunk/src/plugins/preauth/pkinit/Makefile.in
U   trunk/src/plugins/preauth/pkinit/pkinit_clnt.c
U   trunk/src/plugins/preauth/pkinit/pkinit_srv.c




More information about the krb5-bugs mailing list