|
|
da1eb7f |
Allow static libraries to be built. Force plugins to only be built as
|
|
|
da1eb7f |
shared objects. This doesn't *really* fix static linking, but it should
|
|
|
da1eb7f |
parallel glibc and its nsswitch modules -- applications can pull in
|
|
|
da1eb7f |
static copies of this library, but they'll still try to use any
|
|
|
da1eb7f |
available plugins. The current set of plugin interfaces include KDC
|
|
|
da1eb7f |
location (used by clients), preauthentication plugins (used by clients
|
|
|
da1eb7f |
and KDCs), and KDB plugins (used by KDCs).
|
|
|
da1eb7f |
|
|
|
da1eb7f |
N.B. This is only a stop-gap for systems which used to include krb5 1.5
|
|
|
da1eb7f |
(which we packaged with static libraries enabled) and are now being
|
|
|
da1eb7f |
upgraded to 1.6, and I expect to stop bothering for future releases.
|
|
|
da1eb7f |
|
|
|
da1eb7f |
--- krb5-1.6/src/plugins/kdb/db2/configure.in 2005-10-27 05:38:05.000000000 -0400
|
|
|
da1eb7f |
+++ krb5-1.6/src/plugins/kdb/db2/configure.in 2007-02-28 14:51:14.000000000 -0500
|
|
|
da1eb7f |
@@ -1,5 +1,6 @@
|
|
|
da1eb7f |
K5_AC_INIT(configure.in)
|
|
|
da1eb7f |
enable_shared=yes
|
|
|
da1eb7f |
+enable_static=no
|
|
|
da1eb7f |
build_dynobj=yes
|
|
|
da1eb7f |
CONFIG_RULES
|
|
|
da1eb7f |
AC_CHECK_HEADERS(unistd.h)
|
|
|
da1eb7f |
--- krb5-1.6/src/plugins/kdb/db2/libdb2/configure.in 2006-04-24 20:29:56.000000000 -0400
|
|
|
da1eb7f |
+++ krb5-1.6/src/plugins/kdb/db2/libdb2/configure.in 2007-02-28 14:51:14.000000000 -0500
|
|
|
da1eb7f |
@@ -1,5 +1,7 @@
|
|
|
da1eb7f |
K5_AC_INIT(db/db.c)
|
|
|
da1eb7f |
AC_CONFIG_HEADER(include/config.h include/db-config.h)
|
|
|
da1eb7f |
+enable_shared=yes
|
|
|
da1eb7f |
+enable_static=no
|
|
|
da1eb7f |
build_dynobj=yes
|
|
|
da1eb7f |
CONFIG_RULES
|
|
|
da1eb7f |
|
|
|
da1eb7f |
--- krb5-1.6/src/plugins/kdb/ldap/libkdb_ldap/configure.in 2006-08-31 17:17:34.000000000 -0400
|
|
|
da1eb7f |
+++ krb5-1.6/src/plugins/kdb/ldap/libkdb_ldap/configure.in 2007-02-28 14:51:14.000000000 -0500
|
|
|
da1eb7f |
@@ -1,4 +1,7 @@
|
|
|
da1eb7f |
K5_AC_INIT(configure.in)
|
|
|
da1eb7f |
+enable_shared=yes
|
|
|
da1eb7f |
+enable_static=no
|
|
|
da1eb7f |
+build_dynobj=yes
|
|
|
da1eb7f |
CONFIG_RULES
|
|
|
da1eb7f |
AC_CHECK_HEADERS(unistd.h)
|
|
|
da1eb7f |
AC_TYPE_MODE_T
|
|
|
da1eb7f |
--- krb5-1.6/src/plugins/locate/python/configure.in 2006-01-10 19:36:36.000000000 -0500
|
|
|
da1eb7f |
+++ krb5-1.6/src/plugins/locate/python/configure.in 2007-02-28 14:51:14.000000000 -0500
|
|
|
da1eb7f |
@@ -1,5 +1,6 @@
|
|
|
da1eb7f |
K5_AC_INIT(configure.in)
|
|
|
da1eb7f |
enable_shared=yes
|
|
|
da1eb7f |
+enable_static=no
|
|
|
da1eb7f |
build_dynobj=yes
|
|
|
da1eb7f |
CONFIG_RULES
|
|
|
da1eb7f |
AC_CHECK_HEADERS(Python.h python2.3/Python.h)
|
|
|
da1eb7f |
--- krb5-1.6/src/plugins/preauth/wpse/configure.in 2006-10-03 15:07:17.000000000 -0400
|
|
|
da1eb7f |
+++ krb5-1.6/src/plugins/preauth/wpse/configure.in 2007-02-28 14:51:14.000000000 -0500
|
|
|
da1eb7f |
@@ -1,5 +1,6 @@
|
|
|
da1eb7f |
K5_AC_INIT(configure.in)
|
|
|
da1eb7f |
enable_shared=yes
|
|
|
da1eb7f |
+enable_static=no
|
|
|
da1eb7f |
build_dynobj=yes
|
|
|
da1eb7f |
CONFIG_RULES
|
|
|
da1eb7f |
|
|
|
da1eb7f |
--- krb5-1.6/src/plugins/preauth/cksum_body/configure.in 2006-10-03 15:07:17.000000000 -0400
|
|
|
da1eb7f |
+++ krb5-1.6/src/plugins/preauth/cksum_body/configure.in 2007-02-28 14:51:14.000000000 -0500
|
|
|
da1eb7f |
@@ -1,5 +1,6 @@
|
|
|
da1eb7f |
K5_AC_INIT(configure.in)
|
|
|
da1eb7f |
enable_shared=yes
|
|
|
da1eb7f |
+enable_static=no
|
|
|
da1eb7f |
build_dynobj=yes
|
|
|
da1eb7f |
CONFIG_RULES
|
|
|
da1eb7f |
|
|
|
da1eb7f |
--- krb5-1.6/src/aclocal.m4 2006-10-02 18:50:10.000000000 -0400
|
|
|
da1eb7f |
+++ krb5-1.6/src/aclocal.m4 2007-02-28 14:51:14.000000000 -0500
|
|
|
da1eb7f |
@@ -1226,10 +1226,6 @@
|
|
|
da1eb7f |
AC_ARG_ENABLE([static],, ,
|
|
|
da1eb7f |
[enable_static=$default_static])
|
|
|
da1eb7f |
|
|
|
da1eb7f |
-if test "$enable_static" = yes; then
|
|
|
da1eb7f |
- AC_MSG_ERROR([Sorry, static libraries do not work in this release.])
|
|
|
da1eb7f |
-fi
|
|
|
da1eb7f |
-
|
|
|
da1eb7f |
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
|
|
|
da1eb7f |
AC_MSG_NOTICE([disabling static libraries])
|
|
|
da1eb7f |
LIBLINKS=
|
|
|
5899ab2 |
@@ -1254,10 +1250,6 @@
|
|
|
5899ab2 |
, ,
|
|
|
5899ab2 |
[enable_shared=$default_shared])
|
|
|
5899ab2 |
|
|
|
5899ab2 |
-if test "$enable_shared" != yes; then
|
|
|
5899ab2 |
- AC_MSG_ERROR([Sorry, this release builds only shared libraries, cannot disable them.])
|
|
|
5899ab2 |
-fi
|
|
|
5899ab2 |
-
|
|
|
5899ab2 |
if test "$enable_shared" = yes; then
|
|
|
5899ab2 |
case "$SHLIBEXT" in
|
|
|
5899ab2 |
.so-nobuild)
|