Blob Blame History Raw
Cause the pkinit plugin to be kept in memory, so that it doesn't
reinitialize libcrypto every time it's loaded and subsequently lose
track of the memory that doing so allocates, every time the plugin is
unloaded.
--- krb5-1.11.3/src/plugins/preauth/pkinit/Makefile.in
+++ krb5-1.11.3/src/plugins/preauth/pkinit/Makefile.in
@@ -6,6 +6,7 @@ PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 MODULE_INSTALL_DIR = $(KRB5_PA_MODULE_DIR)
 DEFS=@DEFS@
+LDFLAGS += -Wl,-z,nodelete
 
 LOCALINCLUDES = -I../../../include/krb5 -I. $(PKINIT_CRYPTO_IMPL_CFLAGS)
 RUN_SETUP = @KRB5_RUN_ENV@